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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.