C++
๐ C++ Standard Library Headersโ
These are the standard headers defined by ISO C++.
๐ข Numbers & Mathโ
<limits>โ Type properties<climits>โ Limits of integer types<cfloat>โ Limits of floating-point types<cstdint>โ Fixed-width integer types (C++11)<cinttypes>โ Integer format macros (C++11)<stdfloat>โ Extended floating types (C++23)<bit>โ Bit manipulation (C++20)<cmath>โ Math functions<numbers>โ Math constants (C++20)<numeric>โ Numeric algorithms<ratio>โ Compile-time rational arithmetic (C++11)<complex>โ Complex numbers<valarray>โ Value arrays<cfenv>โ Floating-point environment (C++11)<random>โ Random numbers (C++11)<linalg>โ Linear algebra (C++26)
โ๏ธ Strings & Textโ
<string>โstd::string<string_view>โstd::string_view(C++17)<charconv>โto_chars,from_chars(C++17)<format>โstd::format(C++20)<cctype>โ Character classification<cstring>โ C-style strings<cwchar>โ Wide strings<cwctype>โ Wide char classification<cuchar>โ UTF conversion (C++11)
๐ฆ Containersโ
<array>โstd::array(C++11)<vector>โstd::vector<deque>โstd::deque<list>โstd::list<forward_list>โstd::forward_list(C++11)<map>โstd::map,std::multimap<set>โstd::set,std::multiset<unordered_map>โ Hash maps (C++11)<unordered_set>โ Hash sets (C++11)<stack>โstd::stack<queue>โstd::queue,std::priority_queue<span>โstd::spanview (C++20)<mdspan>โstd::mdspan(C++23)<flat_map>โstd::flat_map(C++23)<flat_set>โstd::flat_set(C++23)
๐ Input / Outputโ
<iostream>โ Standard streams<istream>โ Input streams<ostream>โ Output streams<ios>โ Stream base classes<iosfwd>โ Forward declarations<iomanip>โ I/O manipulators<fstream>โ File streams<sstream>โ String streams<spanstream>โ Span streams (C++23)<strstream>โ Deprecated old string streams<cstdio>โ C I/O<print>โstd::print(C++23)<streambuf>โ Stream buffers<syncstream>โ Synchronized output streams (C++20)
๐ง Utilitiesโ
<any>โstd::any(C++17)<optional>โstd::optional(C++17)<variant>โstd::variant(C++17)<expected>โstd::expected(C++23)<tuple>โstd::tuple(C++11)<functional>โ Function objects, bind, invoke<bitset>โ Fixed-size bitset<source_location>โ Code location info (C++20)<debugging>โ Debugging utilities (C++26)
๐งต Memory Managementโ
<new>โ Low-level memory utilities<memory>โ Smart pointers, allocators<memory_resource>โ Polymorphic allocators (C++17)<scoped_allocator>โ Nested allocators (C++11)
โก Error Handling & Debuggingโ
<cassert>โ Assertions<cerrno>โ Error codes<exception>โ Exception handling<stdexcept>โ Standard exceptions<system_error>โ Error codes & conditions (C++11)<stacktrace>โ Stacktrace (C++23)
๐ Iterators & Rangesโ
<iterator>โ Iterators<ranges>โ Ranges library (C++20)<generator>โstd::generator(C++23)
โ๏ธ Algorithms & Executionโ
<algorithm>โ Sorting, searching, etc.<execution>โ Parallel execution policies (C++17)
๐ Localizationโ
<locale>โ Localization utilities<clocale>โ C-style locale<codecvt>โ Unicode conversion (C++11, deprecated C++17, removed C++26)<text_encoding>โ Text encodings (C++26)
๐ Filesystemโ
<filesystem>โ Paths and filesystem operations (C++17)
๐ Regular Expressionsโ
<regex>โ Regex library (C++11)
๐ Atomics & Concurrencyโ
<atomic>โ Atomic operations (C++11)
๐งต Threading & Parallelismโ
<thread>โstd::thread(C++11)<mutex>โ Mutexes (C++11)<shared_mutex>โ Shared mutex (C++14)<condition_variable>โ Thread waiting (C++11)<future>โ Async computations (C++11)<stop_token>โ Stop tokens (C++20)<barrier>โ Barriers (C++20)<latch>โ Latches (C++20)<semaphore>โ Semaphores (C++20)<hazard_pointer>โ Hazard pointers (C++26)<rcu>โ Read-copy-update (C++26)
๐งฉ Core Concepts & Language Featuresโ
<concepts>โ Fundamental concepts (C++20)<coroutine>โ Coroutine support (C++20)<compare>โ Three-way comparison (<=>, C++20)<type_traits>โ Compile-time type information<typeinfo>โ Runtime type information<typeindex>โstd::type_index(C++11)<utility>โ Utility components (move,swap, etc.)<initializer_list>โstd::initializer_list(C++11)<version>โ Implementation-dependent library info (C++20)