EFFECTIVE USE OF STL Chinese---50 Effective Ways to Use STL

Author: (USA) Meyers, S. (Author), Pan Aimin, Chen Ming, Zou Kaihong (Translator)
Publisher:
Publish Date: 2006-04-01
Features: The C++ Standard Template Library (STL) is revolutionary, but learning to use it effectively is not easy. In this book, best-selling author Scott Meyers (author of Effective C++ and More Effective C++) reveals key rules summarized by experts, including practices that experts always adopt and those they always avoid. Through these rules, STL programmers can make the most of STL. Other books merely describe what is in STL, while this book teaches how to use STL. The book contains 50 guiding principles, and for each principle, Scott Meyers provides thorough analysis and in-depth examples, so readers not only learn what to do but also understand when and why to do it. The highlights of the book include the following:
- Recommendations on choosing containers, involving standard STL containers (e.g., vector and list), non-standard STL containers (e.g., hash_set and hash_map), and non-STL containers (e.g., bitset).
- Techniques to improve efficiency, which can significantly enhance the performance of STL (and programs using STL).
- In-depth knowledge, including the behavior of iterators, function objects, and allocators (allocators), as well as practices that programmers should always avoid.
- Guidelines for algorithms and member functions, such as find, based on their subtle behavioral differences, to ensure they are used correctly.
- Discussion of potential portability issues, including simple ways to avoid these issues.
Like Meyers' other works, this book is filled with wisdom derived from real-world experience. Its clear, concise, and thorough style will undoubtedly benefit every STL programmer.
Author Bio: Scott Meyers: One of the world's top authorities on C++ software development. He is the author of two best-selling books, Effective C++ and More Effective C++, and was previously a contributing writer for C/C++ Users Journal and Dr. Dobb's Journal. He frequently writes for C/C++ Users Journal and Dr. Dobb's Journal and provides consulting services to clients worldwide. He is also a member of the Advisory Boards for NumeriX LLC and InfoCruiser. He holds a Ph.D. in Computer Science from Brown University.

📌 Related Posts