|
Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library |  | Author: Scott Meyers Publisher: Addison-Wesley Professional
List Price: $49.99 Buy New: $32.25 as of 11/23/2009 12:28 CST details You Save: $17.74 (35%)
New (36) Used (18) Collectible (1) from $32.18
Seller: Amazon.com Rating: 36 reviews Sales Rank: 51787
Media: Paperback Pages: 288 Number Of Items: 1 Shipping Weight (lbs): 1.3 Dimensions (in): 9.1 x 7.3 x 0.7
ISBN: 0201749629 Dewey Decimal Number: 005.133 UPC: 785342749625 EAN: 9780201749625 ASIN: 0201749629
Publication Date: June 16, 2001 Availability: Usually ships in 24 hours
| |
| Features:
|
| Also Available In:
|
| 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).
|
| Customer Reviews:
Showing reviews 1-5 of 36
Myers Never Disappoints November 8, 2009 RH (Philadelphia, PA) 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. He breaks down every worthwhile container, algorithm et c and shows you exactly what you need to know to maximize its effectiveness. I highly recommend this, along with any other Scott Myers C++ book to any programmer out there.
High quality, correct but you do not need it. February 11, 2009 Yuanchyuan Sheu (USA) 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. I have finally decided to write up a review for this book, it can be summed up as follows:
1. This book is high quality, printed in high quality papers. It is expensive, however, for such a short book.
2. The book is correct, to the very least, if not useful. This is in fact head and shoulders above many other books in the market right now. I consider most of the programming books for the dummies.
3. As you read more books, you realize that nearly all the best books are written by an elite circle. In the case of C++, the circle is the people surrounding Stroustrup. They all know each other and promote the works of each other. Much like in the academic game. But seriously, once you have identified this elite circle, read nothing but the works published by them.
4. In my opinion, to understand STL to the fullest, you have to have a deep knowledge in the Data structures and Algorithms. Otherwise, you could only take the advised best practices for granted without knowing why exactly they are the best practices. And once you know the Data structures decently, the best advices become simply trivia.
5. Therefore, if you are looking at this book, despite its high quality, I think what you really need is a good book in Data structures and Algorithms. Without that, you won't understand this book, and with that, you do not need this book any more.
6. I would have rated this book highly when I was a novice in programming. But when I began to learn more and more about this trade (especially after studying a couple of classic books in Data structures and Algorithms), this book became a laugh stock. How dare Scott Meyers declare himself something as the foremost expert in C++? Anybody with decent graduate level Computer Science knowledge should see that most items in this book are nothing but trivia.
Could be so much more... February 2, 2009 Impulsionaudio 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 that follow the form of itemizing topics into digestible chunks, it works nicely as a desktop reference once you are familiar with the content.
Effective STL does not. Nearly none of the items are under three pages and many of the items are over six pages. It's not because there is so much to each item (e.g. it should only take 1 page to explain why map::insert is more efficient than map::operator[] for adding new elements). It's because each item contains a lot of information only tangentially related to the item that could easily be made into their own two-page items. Much of the time I have to flip back to the start of an item to remind myself what the topic actually is. All of this makes the book relatively useless as a quick desk reference because the ideas all blend together in memory and there is no way to look them up. You may remember a solution to a problem you are working on exists in this book but it is possible (if not likely) that you will have to read ten or more pages, and several items, flipping back and forth, trying to find it.
I hope that Scott Meyers wasn't just doggedly sticking to the number 50 for consistency's sake but I can't think of any other reason why this book was not better organized into 100 items or an asymmetrical 103 (heaven forbid!) items.
Deserves five stars June 17, 2008 Cumhur Guzel (Sydney, NSW, Australia) I would suggest this book anyone dealing with STL. It provides extensive best practice input for the experienced C++/STL developer.
STL Tutorial November 5, 2007 Jack D. Calderon What a great book! Helped me get past mental blocks on using the STL.
Showing reviews 1-5 of 36
|
|
|
|
 Return to Math.com | |