Buy new:
$46.90
$3.99 delivery: Monday, March 25
Ships from: Orangeworld LLC
Sold by: Orangeworld LLC
List Price: $54.99 Details

The List Price is the suggested retail price of a new product as provided by a manufacturer, supplier, or seller. Except for books, Amazon will display a List Price if the product was purchased by customers on Amazon or offered by other retailers at or above the List Price in at least the past 90 days. List prices may not necessarily reflect the product's prevailing market price.
Learn more
Save: $8.09 (15%)
$3.99 delivery Monday, March 25. Details
Only 1 left in stock - order soon.
$$46.90 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$46.90
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Get Fast, Free Shipping with Amazon Prime
FREE delivery Tuesday, March 26 on orders shipped by Amazon over $35
Condition: Used: Good
Comment: The book may have minor cosmetic wear like creased spine, cover, scratches, curled corners, folded pages, minor sunburn, minor water damage, minor bent. The book may have some highlights, notes, underlined pages. Accessories such as CD, codes, toys, may not be included . Safe and Secure Mailer. No Hassle Return
Access codes and supplements are not guaranteed with used items.
Loading your book clubs
There was a problem loading your book clubs. Please try again.
Not in a club? Learn more
Amazon book clubs early access

Join or create book clubs

Choose books together

Track your books
Bring your club to Amazon Book Clubs, start a new book club and invite your friends to join, or find a club that’s right for you for free.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

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

4.5 4.5 out of 5 stars 164 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$46.90","priceAmount":46.90,"currencySymbol":"$","integerValue":"46","decimalSeparator":".","fractionalValue":"90","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"miO%2B1L2KX4KhNrlUeUySlSxJOyH0fPd4YEhszf0GfrRiMPCzTQK2fP9LN4uP6bHpbKpgC1S8dTjlocQEFaUGAveDvtt%2BbOWI84%2B%2FFFVyFT6jybjjlPn06EUfkggckStN2McSvnNcS6PTurKGcZiI0Ujs%2FiuyJ6RnQC51Fc32S%2BRhJqZTkSKfYek%2FmTBr9sql","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$12.08","priceAmount":12.08,"currencySymbol":"$","integerValue":"12","decimalSeparator":".","fractionalValue":"08","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"miO%2B1L2KX4KhNrlUeUySlSxJOyH0fPd4UxpQBlR1ZNWCxgpGDkubMYP%2BIbREML6qZH2wmmdEY4jS0a1DZrMX6uo2EkqdIZUmLg0k3%2FyImlhlJGYehVaZLjdslDp3HAvsWwpAYDGkybJxCCLtjNUwg9sfX6rTVsNRk4hPNNdR8BuHD%2BrTnjeoLImnAIeHPjnT","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons


Amazon First Reads | Editors' picks at exclusive prices

Frequently bought together

$46.90
Only 1 left in stock - order soon.
Ships from and sold by Orangeworld LLC.
+
$43.85
Get it as soon as Saturday, Mar 23
In Stock
Ships from and sold by Amazon.com.
+
$56.08
Get it as soon as Saturday, Mar 23
In Stock
Ships from and sold by Amazon.com.
Total price:
To see our price, add these items to your cart.
Details
Added to Cart
Some of these items ship sooner than the others.
Choose items to buy together.

Editorial Reviews

Amazon.com 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

From the Back Cover

“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 (, and ) 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.

Product details

  • Publisher ‏ : ‎ Addison-Wesley Professional; 1st edition (June 6, 2001)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 288 pages
  • ISBN-10 ‏ : ‎ 0201749629
  • ISBN-13 ‏ : ‎ 978-0201749625
  • Item Weight ‏ : ‎ 1.29 pounds
  • Dimensions ‏ : ‎ 7.3 x 0.8 x 9.1 inches
  • Customer Reviews:
    4.5 4.5 out of 5 stars 164 ratings

Important information

To report an issue with this product or seller, click here.

About the author

Follow authors to get new release updates, plus improved recommendations.
Scott Meyers
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

For more than 20 years, Scott Meyers' Effective C++ books (Effective C++, Effective Modern C++, Effective STL, and More Effective C++) have set the bar for C++ programming guidance. His clear, engaging explanations of complex technical material have earned him a worldwide following, keeping him in demand as a trainer, consultant, and conference presenter. He has a Ph.D. in Computer Science from Brown University.

Customer reviews

4.5 out of 5 stars
4.5 out of 5
164 global ratings

Top reviews from the United States

Reviewed in the United States on April 11, 2011
12 people found this helpful
Report
Reviewed in the United States on August 13, 2004
26 people found this helpful
Report
Reviewed in the United States on September 9, 2005
2 people found this helpful
Report
Reviewed in the United States on March 6, 2014
3 people found this helpful
Report

Top reviews from other countries

Translate all reviews to English
Client d'Amazon
5.0 out of 5 stars Really helpfull
Reviewed in France on November 25, 2019
Amazon Customer
5.0 out of 5 stars Five Stars
Reviewed in India on November 2, 2016
v.tran
5.0 out of 5 stars kann nicht besser sein
Reviewed in Germany on June 5, 2016
One person found this helpful
Report
Tyler S Kenyon
5.0 out of 5 stars Very Effective Resource for C++
Reviewed in Canada on April 14, 2013
Steve
5.0 out of 5 stars Must have
Reviewed in the United Kingdom on June 3, 2012
2 people found this helpful
Report