C++ Standard Headers Index
C++ Standard Headers Index
A grouped index of C++ standard headers with one-line summaries of the main facilities each header provides.
C++ Standard Headers Index
A grouped index of C++ standard headers with one-line summaries of the main facilities each header provides.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
<utility>: move/forward/swap/pair and utility helpers<type_traits>: compile-time type queries and transformations<typeinfo>: runtime type information objects<compare>: three-way comparison categories and comparison helpers<concepts>: standard concepts for constrained templates<tuple>: tuples, tuple helpers, structured tuple access<optional>: maybe-a-value wrapper<variant>: tagged union and visitation<any>: type-erased single-value container<expected>: value-or-error result type<functional>: call wrappers, invocation, binders, reference wrappers<string>: owning text and std::basic_string<string_view>: non-owning contiguous string view<charconv>: fast locale-independent number/text conversions<format>: format strings and formatter-based rendering<print>: formatted printing to stdout and streams<regex>: regular expression types and algorithms<locale>: locale facets and locale-aware formatting/parsing<algorithm>: sorting, searching, partitioning, permutations, heap and set algorithms<numeric>: reductions, scans, numeric transforms, gcd/lcm<iterator>: iterator categories, traits, adapters, inserters<ranges>: range algorithms, views, concepts, adaptors<array>: fixed-size sequence container<vector>: dynamic contiguous sequence<deque>: double-ended sequence<list>: doubly-linked list<forward_list>: singly-linked list<map>, <set>: ordered associative containers<unordered_map>, <unordered_set>: hash-based associative containers<stack>, <queue>: container adapters<span>: non-owning contiguous view<mdspan>: multidimensional non-owning view<memory>: smart pointers, allocators, uninitialized memory helpers<new>: allocation support and std::bad_alloc<iostream>: standard stream objects<istream>, <ostream>: formatted and unformatted stream interfaces<fstream>: file streams<sstream>: string streams<filesystem>: paths, directory iteration, file operations<chrono>: clocks, durations, time points, calendars, time zones<random>: engines and probability distributions<numbers>: mathematical constants<ratio>: compile-time rational arithmetic<complex>: complex arithmetic<valarray>: numeric array container<cmath>: floating-point math functions and classification<thread>: threads, jthread, stop tokens<mutex>: mutexes, lock guards, unique locks<shared_mutex>: reader-writer locking<condition_variable>: blocking waits on state predicates<future>: futures, promises, async tasks<atomic>: atomic types and memory ordering<semaphore>: counting and binary semaphores<barrier>: phase synchronization<latch>: one-shot coordination point<exception>: base exception facilities and exception pointers<stdexcept>: standard logic and runtime exception types<system_error>: error codes, categories, system errors<source_location>: call-site source metadataRepresentative c-prefixed headers include <cassert>, <cctype>, <cerrno>, <cstddef>, <cstdint>, <cstdio>, <cstdlib>, <cstring>, <ctime>, and <cmath>.
<vector><string><memory><algorithm><thread><optional><variant><span><ranges><filesystem><expected><any><format><print><source_location><tuple><functional><charconv><regex><chrono><compare><type_traits><concepts><utility><iterator><typeinfo><new><numeric><random><numbers><exception><stdexcept><system_error><future><atomic><mutex><shared_mutex><condition_variable><semaphore><barrier><latch><stop_token><locale><sstream><fstream><iostream><istream><ostream><string_view><mdspan><array><deque><list><forward_list><queue><map><set><unordered_map><unordered_set><stack>#include <vector>
#include <string_view>
int main() {
std::vector<std::string_view> headers{"<vector>", "<ranges>", "<format>"};
return static_cast<int>(headers.size());
}