This Clause describes utilities that are generally useful in C++ programs; some of these utilities are used by other elements of the C++ standard library. These utilities are summarized in Table 34.
Subclause | Header(s) | |
[utility] | Utility components | <utility> |
[intseq] | Compile-time integer sequences | <utility> |
[pairs] | Pairs | <utility> |
[tuple] | Tuples | <tuple> |
[optional] | Optional objects | <optional> |
[variant] | Variants | <variant> |
[any] | Storage for any type | <any> |
[bitset] | Fixed-size sequences of bits | <bitset> |
[memory] | Memory | <memory> |
<cstdlib> | ||
[smartptr] | Smart pointers | <memory> |
[mem.res] | Memory resources | <memory_resource> |
[allocator.adaptor] | Scoped allocators | <scoped_allocator> |
[function.objects] | Function objects | <functional> |
[meta] | Type traits | <type_traits> |
[ratio] | Compile-time rational arithmetic | <ratio> |
[time] | Time utilities | <chrono> |
<ctime> | ||
[type.index] | Type indexes | <typeindex> |
[execpol] | Execution policies | <execution> |