Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.
Effective STL and over 300,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.
 
 
More Buying Choices
59 used & new from $32.95

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

Don’t have a Kindle? Get yours here.
 
  

Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library (Addison-Wesley Professional Computing Series) (Paperback)

by Scott Meyers (Author)
4.5 out of 5 stars See all reviews (36 customer reviews)

List Price: $49.99
Price: $40.93 & this item ships for FREE with Super Saver Shipping. Details
You Save: $9.06 (18%)
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, July 20? Choose One-Day Shipping at checkout. Details
37 new from $35.50 21 used from $32.95 1 collectible from $38.99
Also Available in: List Price: Our Price: Other Offers:
Kindle Edition (Kindle Book) $22.39

Special Offers and Product Promotions


Frequently Bought Together

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

Show availability and shipping details


Customers Who Bought This Item Also Bought

More Effective C++: 35 New Ways to Improve Your Programs and Designs (Addison-Wesley Professional Computing Series)

More Effective C++: 35 New Ways to Improve Your Programs and Designs (Addison-Wesley Professional Computing Series)

by Scott Meyers
4.4 out of 5 stars (39)  $40.98
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)  $59.99
Design Patterns: Elements of Reusable Object-Oriented Software (Addison-Wesley Professional Computing Series)

Design Patterns: Elements of Reusable Object-Oriented Software (Addison-Wesley Professional Computing Series)

by Erich Gamma
4.5 out of 5 stars (261)  $48.41
The C++ Programming Language: Special Edition (3rd Edition)

The C++ Programming Language: Special Edition (3rd Edition)

by Bjarne Stroustrup
4.2 out of 5 stars (284)  $67.99
C++ Templates: The Complete Guide

C++ Templates: The Complete Guide

by David Vandevoorde
4.8 out of 5 stars (28)  $60.17
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).

See all Editorial Reviews

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: #36,243 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #21 in  Books > Computers & Internet > Microsoft > Development > C & C++ Windows Programming

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.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(9)
(8)
(2)
(1)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

 

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
 
 
Ad
 
Most Recent Customer Reviews

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 5 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 5 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 13 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 20 months ago 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

4.0 out of 5 stars good STL book
I bought this book in a hurry for the purpose of using STL functions for my programming project. It does have some very good and useful advises and tips for dealing with various... Read more
Published on September 9, 2005 by sabnizta

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

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


Active discussions in related forums
   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


Amazon MP3 Delivers Free Songs

Subscribe to The Amazon MP3 Download newsletter to find out about free song downloads, new releases and hot digital music deals first.
subscribe
 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Dive into Summer Reading

Summer Reading for Kids and Teens
Don't even think about hitting the beach without browsing the books in our Summer Reading Store. Discover bestsellers, paperback picks, beach reads, and more terrific titles all summer long.
 

Best Books

Best of the Month
See our editors' picks and more of the best new books on our Best of the Month page.
 
Ad

 

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.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

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

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Free
Free by Chris Anderson
Paranoia
Paranoia by Joseph Finder
My Soul to Lose
My Soul to Lose by Rachel Vincent
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates