Appendix B. Standard Headers

This book uses a small subset of the Standard Template Library (STL; also called the Standard Library). The standard header files we use are all listed here.

To use these classes and functions effectively, it is useful to know where to look for documentation.

Table B.1 lists standard header files. For some header files, there is a man page for the whole file. In other cases, you might find a man page for the individual function also.

Table B.1. Standard headers

Header file

Library

Man pages

C++ STL

  

string

STL strings type

std::string

sstream

stringstream, for writing to strings as if they are streams

std::stringstream

iostream

C++ standard stream library

std::ios, std::iostream

memory

C++ memory-related routines

std::bad_alloc, std::auto_ptr ...

Get An Introduction to Design Patterns in C++ with Qt 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.