Skip to main content

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::span view (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)