9780201749625

Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library

Meyers, Scott

ISBN 10: 0201749629 / 0-201-74962-9
ISBN 13: 9780201749625
Publisher: Addison-Wesley Professional
Publication Date: 2001
Binding: Softcover
Editorial Reviews:
Synopsis:
“This is Effective C++ volume three – it’s really that good.”
– Herb Sutter, independent consultant and secretary of the ISO/ANSI C++ standards committee “There are very few books which all C++ programmers must have. Add Effective STL to that list.”
– Thomas Becker, Senior Software Engineer, Zephyr Associates, Inc., and columnist, C/C++ Users Journal

C++’s Standard Template Library is revolutionary, but learning to use it well has always been a challenge. Until now. In this book, best-selling author Scott Meyers ( Effective C++ , and More Effective C++ ) reveals the critical rules of thumb employed by the experts – the things they almost always do or almost always avoid doing – to get the most out of the library.

Other books describe what’s in the STL. Effective STL shows you how to use it. Each of the book’s 50 guidelines is backed by Meyers’ legendary analysis and incisive examples, so you’ll learn not only what to do, but also when to do it – and why.

Highlights of Effective STL include:

  • Advice on choosing among standard STL containers (like vector and list), nonstandard STL containers (like hash_set and hash_map), and non-STL containers (like bitset).
  • Techniques to maximize the efficiency of the STL and the programs that use it.
  • Insights into the behavior of iterators, function objects, and allocators, including things you should not do.
  • Guidance for the proper use of algorithms and member functions whose names are the same (e.g., find), but whose actions differ in subtle (but important) ways.
  • Discussions of potential portability problems, including straightforward ways to avoid them.

Like Meyers’ previous books, Effective STL is filled with proven wisdom that comes only from experience. Its clear, concise, penetrating style makes it an essential resource for every STL programmer.


Review:
Written for the intermediate or advanced C++ programmer, renowned C++ expert Scott Meyers provides essential techniques for getting more out of the Standard Template Library in Effective STL, a tutorial for doing more with this powerful library.

STL is a hugely powerful feature of today's C++, but one with a well-earned reputation for complexity. The book is organized into 50 tips that explore different areas of the STL. Besides providing a list of dos and don'ts, Meyers presents a lot of background on what works and what doesn't with STL. Each tip is demonstrated with in-depth coding samples, many of which make use of two-color printing to highlight the most important lines of code. (Advanced developers will enjoy Meyers's in-depth explanations, while those who are in a hurry can skip ahead to the recommended tip itself.)

A good part of this book involves using containers, like vectors and maps, which are built into STL. (Besides the standard built-in containers, the author also highlights recent additions to STL like B-trees, which are available as extensions from other vendors.) You'll learn the best ways to allocate, add, change, and delete items inside containers, including associative containers like maps. You'll also learn to avoid common pitfalls, which can result in writing code that is slow or just plain wrong.

Other areas covered in Effective STL cover getting the most out of the 100-plus STL algorithms that are bundled with this library. Meyers shows you how to choose the correct algorithm for sorting and other functions. (Even advanced developers will learn something here.) Sections on using function objects (called functors) round out the text. Meyers shows you when these classes make sense and the best ways to implement them. Besides specific tips, you'll get plenty of general programming advice. A useful appendix shows the limitations of STL as implemented in Microsoft Visual C++ 6.0 and how to overcome them.

Overall, Effective STL is a really invaluable source of programming expertise on an essential aspect of today's C++ for anyone who is using--or planning to use--STL in real production code. It is quite simply a must-have. --Richard Dragan

Topics covered:

  • Introduction to advanced Standard Template Library (STL) programming techniques
  • 50 tips and best practices for STL illustrated with sample tutorial code
  • Choosing containers
  • Efficient copying of elements inside containers
  • Removing, erasing, and cleaning up items from containers
  • Using custom allocators with STL containers
  • Thread safety with STL
  • Tips for programming with the STL vector and string classes (including reserving memory and calling legacy C/C++ code)
  • Tips for associative containers (including comparing items, sorted vectors, and non-standard enhancements to STL)
  • Tips for selecting and using STL iterator classes
  • STL algorithms (including sorting, removing, and comparing items)
  • Using functors with STL
  • General tips for STL programming (including advice for choosing algorithms and understanding compiler diagnostic messages)
  • String locales
  • Overcoming STL imitations in Microsoft Visual C++ 6.0

Review

Review:
"This is Effective C++ volume three--it's really that good." --Herb Sutter, independent consultant and secretary of the ISO/ANSI C++ standards committee

"There are very few books which all C++ programmers must have. Add Effective STL to that list." --Thomas Becker, Senior Software Engineer, Zephyr Associates, Inc., and columnist, C/C++ Users Journal

C++'s Standard Template Library is revolutionary, but learning to use it well has always been a challenge. Until now.

Other books describe what's in the STL. Effective STL shows you how to use it. Each of the book's 50 guidelines is backed by Meyers' legendary analysis and incisive examples, so you'll learn not only what to do, but also when to do it--and why.

Highlights of Effective STL include:

  • Advice on choosing among standard STL containers (like vector and list), nonstandard STL containers (like hash_set and hash_map), and non-STL containers (like bitset).
  • Techniques to maximize the efficiency of the STL and the programs that use it.
  • Insights into the behavior of iterators, function objects, and allocators, including things you should not do.
  • Guidance for the proper use of algorithms and member functions whose names are the same (e.g., find), but whose actions differ in subtle (but important) ways.
  • Discussions of potential portability problems, including straightforward ways to avoid them.

    Like Meyers' previous books, Effective STL is filled with proven wisdom that comes only from experience. Its clear, concise, penetrating style makes it an essential resource for every STL programmer.



    0201749629B06142001
  • From the Back Cover

     

    Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library: Search Results

    1.
    International Edition
    International Edition
    Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library (ISBN: 9780201749625)
    Meyers, Scott
    ISBN 10: 0201749629
    ISBN 13: 9780201749625
    Bookseller: bookscollection (ghaziabad, U.P, India)
    Bookseller Rating: 5-star rating
    Quantity Available: 10

    Book Description: Book Condition: Brand New. Book Description:Addison-Wesley Professional. PAPERBACK. Book Condition: New. 0201749629 Brand New,Softcover,International Edition,Cover & ISBN may be different from US edition But Contents are same as US Edition.Printed in English Language,Prompt shipping by USPS,UPS,DHL,Fedex.Exceptional customer Service,Satisfaction Guaranteed. Bookseller Inventory # Amtmn1354

    Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

    Add Book to Shopping Basket
    Price: US$ 12.80
    Convert Currency
    Shipping: US$ 3.99
    From India to U.S.A.
    2.
    International Edition
    International Edition
    Effective STL (ISBN: 9780201749625)
    Meyers, Scott
    ISBN 10: 0201749629
    ISBN 13: 9780201749625
    Bookseller: University Bookstore (NEW DELHI, DL, India)
    Bookseller Rating: 5-star rating
    Quantity Available: > 20

    Book Description: 2001. Soft cover. Book Condition: New. This book is BRAND NEW Soft cover International edition with black and white printing. ISBN number & cover page may be different but contents identical to the US edition word by word. Book is in English language. Bookseller Inventory # UN-PEA-ON-152

    Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

    Add Book to Shopping Basket
    Price: US$ 11.49
    Convert Currency
    Shipping: US$ 6.69
    From India to U.S.A.
    3.
    International Edition
    International Edition
    Effective Stl: 50 Specific Ways to Improve Your Use of the Standard Template Library (ISBN: 0201749629 / 0-201-74962-9)
    Meyers, Scott
    ISBN 10: 0201749629
    ISBN 13: 9780201749625
    Bookseller: PRIORITY BOOKS (SPRINGFIELD, VA, U.S.A.)
    Bookseller Rating: 5-star rating
    Quantity Available: 10

    Book Description: Lebanon, Indiana, U.S.A.: Addison-Wesley, 2001. Soft cover. Book Condition: New. [Please Read Carefully Before Buying] New, This Is An International Edition. Print In Gray Scale. Book Cover And ISBN No May Be Different From Usa Edition. Restricted Sales Disclaimer Wordings Not For Sales In Usa And Canada May Be Printed On The Cover Of The Book. Standard Shipping 7-14 Business Days. Expedited Shiping 4-8 Business Days. The Books May Be Ship From Overseas For Inventory Purpose. Bookseller Inventory # 9788177589085_0201749629

    Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

    Add Book to Shopping Basket
    Price: US$ 13.33
    Convert Currency
    Shipping: US$ 4.90
    Within U.S.A.
    4.
    International Edition
    International Edition
    Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library (ISBN: 0201749629 / 0-201-74962-9)
    Meyers, Scott
    ISBN 10: 0201749629
    ISBN 13: 9780201749625
    Bookseller: GREAT BOOKS DEAL (TALLAHASSEE, FL, U.S.A.)
    Bookseller Rating: 5-star rating
    Quantity Available: > 20

    Book Description: Soft cover. Book Condition: New. 1st Edition. Brand New, Softcover Black & White International Edition. GET IT FAST within 3-5 business days by FEDEX/UPS/DHL worldwide express with Tracking Number. Book printed in English. No shipping to PO Box/APO/FPO address. The international edition will has different ISBN and Cover design from US edition. Occasionally, international textbooks may come with different exercises at the end of chapters. Restricted sales disclaimer wordings |Not for Sales in USA and Canada| are printed on the cover of the book. It is legally to use the international edition in North America. We may ship the books from India or other Asian regions for inventory purpose. Customer satisfaction guaranteed and in case of any queries please email us. Bookseller Inventory # TBD09821424826

    Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

    Add Book to Shopping Basket
    Price: US$ 17.00
    Convert Currency
    Shipping: US$ 3.75
    Within U.S.A.
    5.
    International Edition
    International Edition
    Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library (ISBN: 0201749629 / 0-201-74962-9)
    Meyers, Scott
    ISBN 10: 0201749629
    ISBN 13: 9780201749625
    Bookseller: Books Market (Hayward, CA, U.S.A.)
    Bookseller Rating: 4-star rating
    Quantity Available: 3

    Book Description: Addison-Wesley Professional. PAPERBACK. Book Condition: New. 0201749629 Brand New International Edition . Cover and ISBN of the books might be different in some cases . Fast Shipping, Super Quality & Awesome Customer Support is Guaranteed!. Bookseller Inventory # FL-2-SEC-B#9-UP-201749629

    Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

    Add Book to Shopping Basket
    Price: US$ 20.99
    Convert Currency
    Shipping: US$ 3.99
    Within U.S.A.
    6.
    Effective STL (ISBN: 9780201749625)
    Meyers, Scott
    ISBN 10: 0201749629
    ISBN 13: 9780201749625
    Bookseller: Paperbackshop-US (Secaucus, NJ, U.S.A.)
    Bookseller Rating: 5-star rating
    Quantity Available: > 20

    Book Description: Pearson Education, 2001. Paperback. Book Condition: New. New Book. Shipped from US. Bookseller Inventory # PJ-9780201749625

    Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

    Add Book to Shopping Basket
    Price: US$ 34.70
    Convert Currency
    Shipping: US$ 3.99
    Within U.S.A.
    7.
    Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library (Paperback) (ISBN: 9780201749625)
    Meyers, Scott
    ISBN 10: 0201749629
    ISBN 13: 9780201749625
    Bookseller: The Book Depository US (Gloucester, ., United Kingdom)
    Bookseller Rating: 5-star rating
    Quantity Available: 10

    Book Description: Pearson Education (US), United States, 2007. Paperback. Book Condition: New. New ed. 235 x 189 mm. Brand New Book. This is Effective C++ volume three - it s really that good. - Herb Sutter, independent consultant and secretary of the ISO/ANSI C++ standards committee There are very few books which all C++ programmers must have. Add Effective STL to that list. - Thomas Becker, Senior Software Engineer, Zephyr Associates, Inc., and columnist, C/C++ Users Journal C++ s Standard Template Library is revolutionary, but learning to use it well has always been a challenge. Until now. In this book, best-selling author Scott Meyers (Effective C++, and More Effective C++) reveals the critical rules of thumb employed by the experts - the things they almost always do or almost always avoid doing - to get the most out of the library. Other books describe what s in the STL. Effective STL shows you how to use it. Each of the book s 50 guidelines is backed by Meyers legendary analysis and incisive examples, so you ll learn not only what to do, but also when to do it - and why. Highlights of Effective STL include: * Advice on choosing among standard STL containers (like vector and list), nonstandard STL containers (like hash set and hash map), and non-STL containers (like bitset). * Techniques to maximize the efficiency of the STL and the programs that use it. * Insights into the behavior of iterators, function objects, and allocators, including things you should not do. * Guidance for the proper use of algorithms and member functions whose names are the same (e.g., find), but whose actions differ in subtle (but important) ways. * Discussions of potential portability problems, including straightforward ways to avoid them. Like Meyers previous books, Effective STL is filled with proven wisdom that comes only from experience. Its clear, concise, penetrating style makes it an essential resource for every STL programmer. Bookseller Inventory # AAK9780201749625

    Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

    Add Book to Shopping Basket
    Price: US$ 40.83
    Convert Currency
    Shipping: US$ 0.00
    From United Kingdom to U.S.A.
    8.
    Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library (Paperback) (ISBN: 9780201749625)
    Meyers, Scott
    ISBN 10: 0201749629
    ISBN 13: 9780201749625
    Bookseller: The Book Depository (Gloucester, UK, United Kingdom)
    Bookseller Rating: 5-star rating
    Quantity Available: 10

    Book Description: Pearson Education (US), United States, 2007. Paperback. Book Condition: New. New ed. 235 x 189 mm. Brand New Book. This is Effective C++ volume three - it s really that good. - Herb Sutter, independent consultant and secretary of the ISO/ANSI C++ standards committee There are very few books which all C++ programmers must have. Add Effective STL to that list. - Thomas Becker, Senior Software Engineer, Zephyr Associates, Inc., and columnist, C/C++ Users Journal C++ s Standard Template Library is revolutionary, but learning to use it well has always been a challenge. Until now. In this book, best-selling author Scott Meyers (Effective C++, and More Effective C++) reveals the critical rules of thumb employed by the experts - the things they almost always do or almost always avoid doing - to get the most out of the library. Other books describe what s in the STL. Effective STL shows you how to use it. Each of the book s 50 guidelines is backed by Meyers legendary analysis and incisive examples, so you ll learn not only what to do, but also when to do it - and why. Highlights of Effective STL include: * Advice on choosing among standard STL containers (like vector and list), nonstandard STL containers (like hash set and hash map), and non-STL containers (like bitset). * Techniques to maximize the efficiency of the STL and the programs that use it. * Insights into the behavior of iterators, function objects, and allocators, including things you should not do. * Guidance for the proper use of algorithms and member functions whose names are the same (e.g., find), but whose actions differ in subtle (but important) ways. * Discussions of potential portability problems, including straightforward ways to avoid them. Like Meyers previous books, Effective STL is filled with proven wisdom that comes only from experience. Its clear, concise, penetrating style makes it an essential resource for every STL programmer. Bookseller Inventory # AAK9780201749625

    Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

    Add Book to Shopping Basket
    Price: US$ 41.47
    Convert Currency
    Shipping: US$ 0.00
    From United Kingdom to U.S.A.
    9.
    Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library Format: Paper (ISBN: 0201749629 / 0-201-74962-9)
    Meyers, Scott
    ISBN 10: 0201749629
    ISBN 13: 9780201749625
    Bookseller: INDOO (Avenel, NJ, U.S.A.)
    Bookseller Rating: 4-star rating
    Quantity Available: > 20

    Book Description: Prentice Hall. Book Condition: New. Brand New. Bookseller Inventory # 0201749629

    Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

    Add Book to Shopping Basket
    Price: US$ 38.49
    Convert Currency
    Shipping: US$ 3.50
    Within U.S.A.
    10.
    Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library (Paperback) (ISBN: 0201749629 / 0-201-74962-9)
    Meyers, Scott
    ISBN 10: 0201749629
    ISBN 13: 9780201749625
    Bookseller: Bobs Books (JRM) (Romulus, MI, U.S.A.)
    Bookseller Rating: 4-star rating
    Quantity Available: 1

    Book Description: 2001. Paperback. Book Condition: New. 188mm x 20mm x 234mm. Paperback. The goal of this book is to provide the working C++ programmer with fifty specific ways to improve his or her use of C++'s Standard Template Library. It gives advice on what should be.Shipping may be from multiple locations in the US or from the UK, depending on stock availability. 288 pages. 0.567. Bookseller Inventory # 9780201749625

    Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

    Add Book to Shopping Basket
    Price: US$ 42.69
    Convert Currency
    Shipping: US$ 0.00
    Within U.S.A.
    View All Listings for this Book