Effective STL and over 360,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
 
 
Express Checkout with PayPhrase
What's this? | Create PayPhrase
More Buying Choices
53 used & new from $20.00

Have one to sell? Sell yours here
 
   
Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library
 
 
Start reading Effective STL on your Kindle in under a minute.

Don’t have a Kindle? Get your Kindle here.
 
  

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

~ (Author)
4.5 out of 5 stars  See all reviews (36 customer reviews)

List Price: $49.99
Price: $32.25 & this item ships for FREE with Super Saver Shipping. Details
You Save: $17.74 (35%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Monday, November 30? Choose One-Day Shipping at checkout. Details
Ordering for Christmas? To ensure delivery by December 24, choose FREE Super Saver Shipping at checkout. Read more about holiday shipping.

32 new from $28.24 20 used from $20.00 1 collectible from $35.00

Formats

Amazon Price New from Used from
  Kindle Edition, May 14, 2008 $22.39 -- --
  Paperback, June 15, 2001 $32.25 $28.24 $20.00

Frequently Bought Together

Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library + Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition) + More Effective C++: 35 New Ways to Improve Your Programs and Designs
Price For All Three: $96.75

Show availability and shipping details


Customers Who Bought This Item Also Bought

More Effective C++: 35 New Ways to Improve Your Programs and Designs

More Effective C++: 35 New Ways to Improve Your Programs and Designs

by Scott Meyers
4.4 out of 5 stars (39)  $32.25
Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition)

Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition)

by Scott Meyers
4.8 out of 5 stars (143)  $32.25
The C++ Standard Library: A Tutorial and Reference

The C++ Standard Library: A Tutorial and Reference

by Nicolai M. Josuttis
4.8 out of 5 stars (98)  $51.60
Exceptional C++: 47 Engineering Puzzles, Programming Problems, and Solutions

Exceptional C++: 47 Engineering Puzzles, Programming Problems, and Solutions

by Herb Sutter
4.7 out of 5 stars (35)  $32.25
C++ Templates: The Complete Guide

C++ Templates: The Complete Guide

by Nicolai M. Josuttis
4.8 out of 5 stars (29)  $48.38
Explore similar items

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


Product Description

(Pearson Education) Explains STL, Standard Template Library, and how to use it. Offers STL programmes at varying levels of skill techniques to master the efficiency of STL and STL programs, with insights into functions, allocators, and iterators, among other concepts. Softcover. DLC: C++ (Computer program language).

Product Details

  • Paperback: 288 pages
  • Publisher: Addison-Wesley Professional (June 16, 2001)
  • Language: English
  • ISBN-10: 0201749629
  • ISBN-13: 978-0201749625
  • Product Dimensions: 9.1 x 7.3 x 0.7 inches
  • Shipping Weight: 1.3 pounds (View shipping rates and policies)
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (36 customer reviews)
  • Amazon.com Sales Rank: #22,612 in Books (See Bestsellers in Books)

    Popular in these categories: (What's this?)

    #5 in  Books > Computers & Internet > Microsoft > Development > C & C++ Windows Programming
    #70 in  Books > Computers & Internet > Programming > Languages & Tools

More About the Author

Scott Meyers
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Scott Meyers Page

Look Inside This Book

What Do Customers Ultimately Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(10)
(8)
(2)
(1)

Your tags: Add your first tag
 

 

Customer Reviews

36 Reviews
5 star:
 (25)
4 star:
 (7)
3 star:
 (2)
2 star:
 (2)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.5 out of 5 stars (36 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
29 of 30 people found the following review helpful:
5.0 out of 5 stars Awesome!, June 17, 2001
By M. Henning "Michi" (Holland Park, QLD Australia) - See all my reviews
(REAL NAME)   
This is a truly useful book. It explains lots of little "gotchas" that I didn't know about previously, and Scott does his usual excellent job at explaining *why* it's important to do things a certain way (and no other). One part that I found particularly interesting is about the futility of writing container-independent code; not only does that section show why this is a bad idea, it also serves as a splendid illustration of the idiosyncracies of the various containers. The chapter on iterators is priceless, as are the tips about writing comprehensible code and debugging.

The presentation is very much up-to-date (even to the point where it anticipates some of the forthcoming updates to the C++ standard). The writing style is clear and precise without sounding academic or condescending, and the book has an index that actually works.

"Effective STL" is every bit as good as "Effective C++" and "More Effective C++". No C++ programmer should still be writing code without the STL, and no-one writing code with the STL should be without this book. Buy it!

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
20 of 20 people found the following review helpful:
5.0 out of 5 stars Scott Does It Again, July 5, 2001
By Andrei Alexandrescu (Seattle, WA United States) - See all my reviews
There we go - with his well-known sharpness and diligence, Scott absorbed STL in all detail, taught it in seminars, chewed on the ensuing experience, and distilled it all in this book.

I was one of the reviewers and in the beginning I thought that reviewing a book on STL is going to be an easy enough task. I was wrong.

I learned lots of new things on using STL effectively: why `empty()` is better than `size() == 0`, when and how to write custom allocators, how std::string might be implemented, how associative containers distinguish between equality and equivalence, how to implement associative containers as sorted vectors (that's a gem!), and many, many other things that I either had a blurry understanding of, or simply didn't know about. Now I'm glad I do, because my understanding of the STL and the practical use of it are much better.

The book went through an extensive review process; it is really combed and distilled to its finest. I recommend it to any C++ programmer who uses STL - which should be, any C++ programmer, period. Five well deserved stars.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
12 of 12 people found the following review helpful:
5.0 out of 5 stars improved my code immediately, August 13, 2004
By Eric Jewart (Boston, MA USA) - See all my reviews
(REAL NAME)   
I'm a professional software engineer. I write code all day long and have lots of experience with C++, but I hadn't used STL much until recently. If you're in a similar situation--decent C++ knowledge but not an STL expert--this book is for you. I haven't even read the whole thing yet, and already I am using patterns from the book to write more effective code.

Before I started this book, I thought STL was kind of neat. It had some useful containers. It was nice to be able to use a list or map or string class that had already been tested.

Boy, was I underestimating the power of STL. This book has made me a big STL fan, but I'm not reviewing the STL now so I'll leave that topic alone... Thanks to Scott Meyers, I have a much better grasp of the capabilities and limitations of STL. I can use it to do a lot more. I write more concise code that's easier to read and debug. I make better choices about which containers to use. I recognize situations where I can use an STL algorithm instead of many lines of my own code.

In short, I look at the STL code I wrote before and laugh... I mean, it all works, but the Meyers book has taken my use of (and appreciation for) the STL to a whole new level. I recommend this book for any C++ developer who isn't already an STL expert.

An update, 2 years after the above text was written: I still recommend this book to people and still think it's the best STL book I've read.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars Myers Never Disappoints
This is another home run by Scott Myers. This book will immediately improve your use of the STL in terms of both exception safety and program efficiency. Read more
Published 19 days ago by RH

4.0 out of 5 stars High quality, correct but you do not need it.
I have this book for about 4 years now. I have been through the book many times myself, from a view point of a novice programmer to a view point of a more experienced coder. Read more
Published 9 months ago by Yuanchyuan Sheu

3.0 out of 5 stars Could be so much more...
I had to give this book three stars because the author is capable of so much more. Effective C++ is very tightly written and like the other Professional Computing Series books... Read more
Published 9 months ago by Impulsionaudio

5.0 out of 5 stars Deserves five stars
I would suggest this book anyone dealing with STL. It provides extensive best practice input for the experienced C++/STL developer.
Published 17 months ago by Cumhur Guzel

5.0 out of 5 stars STL Tutorial
What a great book! Helped me get past mental blocks on using the STL.
Published on November 5, 2007 by Jack D. Calderon

5.0 out of 5 stars does for the STL what Effective C++ did for the rest of C++
The man Meyers has worked his magic on the STL. If you've read Effective C++, then you know what to expect, and should invest accordingly. Read more
Published on February 21, 2007 by Thing with a hook

4.0 out of 5 stars a very good book
I really enjoyed to read this book as it contains very good tips. The only detail that annoys me a little bit is the amount of cross references between the items. Read more
Published on November 25, 2006 by Olivier Langlois

5.0 out of 5 stars Great resource - must have
I tought I knew STL but Dr. Meyers showed me how little I knew. His in-depth analysis and numerous examples gives new insight into STL and how to best implement solutions using... Read more
Published on November 6, 2006 by Stratiotes Doxha Theon

5.0 out of 5 stars Converted a hard-core C programmer to the STL!
I thought this book was great. It gave me allot of good ideas and showed me how to things I didn't know how to before. Read more
Published on March 18, 2006 by William E. Diehl

5.0 out of 5 stars Standard Template Advice
This book will help you make better progamming decisons when it comes time to use the STL in a project. Read more
Published on March 15, 2006 by J. Wrenholt

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Discussion Replies Latest Post
Textbooks for Kindle DX? 65 2 days ago
textbook scam 77 7 days ago
Anyone need psychology testbook- trying to sell a used copy 2 13 days ago
Search Customer Discussions
Search all Amazon discussions
   


Listmania!

Create a Listmania! list


Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.