Effective STL 50 Specific Ways to Improve Your Use of the Standard Template Library

ISBN-10: 0201749629
ISBN-13: 9780201749625
Edition: 2001
Authors: Scott Meyers
List price: $54.99 Buy it from $19.62
eBook available
This item qualifies for FREE shipping

*A minimum purchase of $35 is required. Shipping is provided via FedEx SmartPost® and FedEx Express Saver®. Average delivery time is 1 – 5 business days, but is not guaranteed in that timeframe. Also allow 1 - 2 days for processing. Free shipping is eligible only in the continental United States and excludes Hawaii, Alaska and Puerto Rico. FedEx service marks used by permission."Marketplace" orders are not eligible for free or discounted shipping.

30 day, 100% satisfaction guarantee

If an item you ordered from TextbookRush does not meet your expectations due to an error on our part, simply fill out a return request and then return it by mail within 30 days of ordering it for a full refund of item cost.

Learn more about our returns policy

Description: C++'s Standard Template Library is revolutionary, but until now, learning to use it well has been a challenge. In this book, best-selling author Scott Meyers exposes critical rules of thumb experts use to get the most out of STL. Using the same  More...

New Starting from $49.01
eBooks Starting from $43.99
Buy
what's this?
Rush Rewards U
Members Receive:
coins
coins
You have reached 400 XP and carrot coins. That is the daily max!

Study Briefs

Limited time offer: Get the first one free! (?)

All the information you need in one place! Each Study Brief is a summary of one specific subject; facts, figures, and explanations to help you learn faster.

Add to cart
Study Briefs
SQL Online content $4.95 $1.99
Add to cart
Study Briefs
MS Excel® 2010 Online content $4.95 $1.99
Add to cart
Study Briefs
MS Word® 2010 Online content $4.95 $1.99
Add to cart
Study Briefs
MS PowerPoint® 2010 Online content $4.95 $1.99

Customers also bought

Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

Book details

List price: $54.99
Copyright year: 2001
Publisher: Addison Wesley Professional
Publication date: 6/6/2001
Binding: Paperback
Pages: 288
Size: 7.50" wide x 9.25" long x 0.50" tall
Weight: 1.386
Language: English

C++'s Standard Template Library is revolutionary, but until now, learning to use it well has been a challenge. In this book, best-selling author Scott Meyers exposes critical rules of thumb experts use to get the most out of STL. Using the same clear, concise approach that made Effective C++ so successful, he shows developers exactly how to unravel STL's complexities -- and leverage its full power. The book is organized into 50 guidelines, each followed by specific examples and to-the-point explanations. Meyers offers advice on what should be done, and why -- and what should not be done, and why not. Effective STL offers in-depth coverage of iterators, containers, allocators, string implementation, function objects, algorithms, equality, equivalence, and more. Discover how to choose among standard, non-standard, and non-STL containers; how to properly use algorithms and member functions that have the same names but subtly different behaviors; how to avoid potential portability problems; and how to maximize the efficiency of both the STL and the programs that use it. An essential resource for all C++ programmers.

For more than 20 years, Scott Meyers' Effective C++ books (Effective C++, More Effective C++, and Effective STL) have set the bar for C++ programming guidance. His clear, engaging explanations of complex technical material have earned him a worldwide following, and they keep him in demand as a trainer, consultant, and conference presenter. Winner of the 2009 Dr. Dobb's Excellence in Programming Award, he has a Ph.D. in Computer Science from Brown University. His web site is aristeia.com.

Preface
Acknowledgments
Introduction
Containers
Choose your containers with care
Beware the illusion of container-independent code
Make copying cheap and correct for objects in containers
Call empty instead of checking size() against zero
Prefer range member functions to their single-element counterparts
Be alert for C++'s most vexing parse
When using containers of newed pointers, remember to delete the pointers before the container is destroyed
Never create containers of auto_ptrs
Choose carefully among erasing options
Be aware of allocator conventions and restrictions
Understand the legitimate uses of custom allocators
Have realistic expectations about the thread safety of STL containers
Vector and string
Prefer vector and string to dynamically allocated arrays
Use reserve to avoid unnecessary reallocations
Be aware of variations in string implementations
Know how to pass vector and string data to legacy APIs
Use "the swap trick" to trim excess capacity
Avoid using vector[left angle bracket]bool[right angle bracket]
Associative Containers
Understand the difference between equality and equivalence
Specify comparison types for associative containers of pointers
Always have comparison functions return false for equal values
Avoid in-place key modification in set and multiset
Consider replacing associative containers with sorted vectors
Choose carefully between map::operator[] and map::insert when efficiency is important
Familiarize yourself with the nonstandard hashed containers
Iterators
Prefer iterator to const_iterator, reverse_iterator, and const_reverse_iterator
Use distance and advance to convert a container's const_iterators to iterators
Understand how to use a reverse_iterator's base iterator
Consider istreambuf_iterators for character-by-character input
Algorithms
Make sure destination ranges are big enough
Know your sorting options
Follow remove-like algorithms by erase if you really want to remove something
Be wary of remove-like algorithms on containers of pointers
Note which algorithms expect sorted ranges
Implement simple case-insensitive string comparisons via mismatch or lexicographical_compare
Understand the proper implementation of copy-if
Use accumulate or for_each to summarize ranges
Functors, Functor Classes, Functions, etc.
Design functor classes for pass-by-value
Make predicates pure functions
Make functor classes adaptable
Understand the reasons for ptr_fun, mem_fun, and mem_fun_ref
Make sure less[left angle bracket]T[right angle bracket] means operator[left angle bracket]
Programming with the STL
Prefer algorithm calls to hand-written loops
Prefer member functions to algorithms with the same names
Distinguish among count, find, binary_search, lower_bound, upper_bound, and equal_range
Consider function objects instead of functions as algorithm parameters
Avoid producing write-only code
Always #include the proper headers
Learn to decipher STL-related compiler diagnostics
Familiarize yourself with STL-related web sites
Bibliography
Locales and Case-Insensitive String Comparisons
Remarks on Microsoft's STL Platforms
Index

×
Free shipping on orders over $35*

*A minimum purchase of $35 is required. Shipping is provided via FedEx SmartPost® and FedEx Express Saver®. Average delivery time is 1 – 5 business days, but is not guaranteed in that timeframe. Also allow 1 - 2 days for processing. Free shipping is eligible only in the continental United States and excludes Hawaii, Alaska and Puerto Rico. FedEx service marks used by permission."Marketplace" orders are not eligible for free or discounted shipping.

Learn more about the TextbookRush Marketplace.

×