Utility library
Contents |
Language support
Basic types and their properties
See this for additional information about fundamental types implicitly defined by the language
Various headers define some basic types that are used throughout the library.
To enhance portability, several fixed width integer types are defined Template:mark c++0x feature
The numeric_limits
class template provides an interface to query properties of all fundamental types.
Lot of macros define properties of the fundamental types this is deprecated in favour of numeric_limits
interface
Dynamic memory allocation
Several memory utilities provide both low and high level support for managing memory dynamically.
Error handling
Several error handling utilities provide both low and high level error handling primitives.
Runtime type identification
Language builtin typeid operator allows to query object type on either on runtime or compile-time depending on the information available to the compiler. Several support classes are defined, which provide convenient interface with the feature.
Initializer lists
Class template initializer_list
allows to use initializer list syntax to initialize non Plain-old-data types Template:mark c++0x
General utilities
Program utilities
Several program utilities are defined, which implement program termination and communication with the environment primitives, as well as signal handling and non-local jumps.
Compile time rational arithmetic
Several classes and functions provide compile time rational arithmetic support. Template:mark c++0x
Date and time
Several classes and functions provide minimal time and date support.
Bitset
Class bitset
implements constant length bit array
Function objects
Several useful function objects performing simple operations are provided
Type traits
Several specially crafted class templates implement compile-time interface to query and set various properties of types.
Pairs and tuples
Class template tuple
implements fixed size container, which holds elements of possibly different types Template:mark c++0x
Class template pair
implements binary tuple, i.e. a pair of values.
Swap, forward and move
swap |
| ||
forward |
| ||
move |
| ||
move_if_noexcept |
|
Operators
rel_ops
This section is incomplete |
Old
pair |
definition of a pair of values |
make_pair |
create a pair |