Chapter 4. Utilities

This chapter describes the general utilities of the C++ standard library. These utilities are:

  • Small, simple classes and functions that perform often-needed tasks

  • Several general types

  • Some important C functions

  • Numeric limits[1]

Most, but not all, of these utilities are described in clause 20, "General Utilities," of the C++ Standard, and their definitions can be found in the <utility> header. The rest are described along with more major components of the library either because they are used primarily with that particular component or due to historical reasons. For example, some general auxiliary functions are defined as part of the <algorithm> header, although they are not algorithms in the sense of the STL (which is described ...

Get The C++ Standard Library: A Tutorial and Reference 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.