O'Reilly logo

The C++ Programming Language, Special Edition by New Jersey Stroustrup Bjarne AT&T Labs Murray Hill

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16. Library Organization and Containers

 

It was new. It was singular. It was simple. It must succeed!

 
 --H. Nelson

Design criteria for the standard librarylibrary organizationstandard headerslanguage supportcontainer designiteratorsbased containersSTL containersvectoriteratorselement accessconstructorsmodifierslist operationssize and capacityvector<bool>adviceexercises.

Standard Library Design

What ought to be in the standard C++ library? One ideal is for a programmer to be able to find every interesting, significant, and reasonably general class, function, template, etc., in a library. However, the question here is not, “What ought to be in some library?” but “What ought to be in the standard ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required