C++ includes a variety of utility libraries that provide functionality ranging from bit-counting to partial function application. These libraries can be broadly divided into two groups:
Language support libraries provide classes and functions that interact closely with language features and support common language idioms.
[edit] Implementation properties (since C++20)The header <version> supplies implementation-dependent information about the C++ standard library (such as the version number and release date). It also defines the library feature-test macros.
[edit] Type supportBasic types (e.g. std::size_t, std::nullptr_t), RTTI (e.g. std::type_info)
[edit] Program utilitiesTermination (e.g. std::abort, std::atexit), environment (e.g. std::system), signals (e.g. std::raise).
[edit] Dynamic memory managementSmart pointers (e.g. std::shared_ptr), allocators (e.g. std::allocator or std::pmr::memory_resource), C-style memory management (e.g. std::malloc).
[edit] Error handlingExceptions (e.g. std::exception, std::terminate), assertions (e.g. assert).
[edit] Variadic functionsSupport for functions that take an arbitrary number of parameters (via e.g. va_start, va_arg, va_end).
[edit] Initializer lists (since C++11) [edit] Source code information capture (since C++20) a class representing information about the source code, such as file names, line numbers, and function namesTypes for coroutine support (e.g. std::coroutine_traits, std::coroutine_handle).
[edit] Contract support (since C++26)Types for contract support (e.g. std::contracts::contract_violation).
[edit] General-purpose utilities [edit] Swap swaps the values of two objectsThe header <bit> provides several function templates to access, manipulate, and process individual bits and bit sequences. The byte ordering (endianness) of scalar types can be inspected via std::endian facility.
[edit] Function objects (since C++11)Partial function application (e.g. std::bind) and related utilities: utilities for binding such as std::ref and std::placeholders, polymorphic function wrappers: std::function, predefined functors (e.g. std::plus, std::equal_to), pointer-to-member to function converters std::mem_fn.
[edit] Hash support (since C++11) hash function objectRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4