Reference

Reference

Broad C and C++ language and standard-library reference indexes for quick lookup.

Reference

This section is intentionally broad. It is for lookup, not for a step-by-step learning path.

What this section covers

Important scope note

The C and C++ standard libraries are large enough that a single page cannot reasonably list every overload and every member function in a way that remains readable. This reference therefore aims to be exhaustive at the level of:

Use it as a structured map of the standards rather than as a replacement for the standard text.

Fast entry points

How to use this section

Pages in this section

Reference

C++ Numerics and Time

Chrono, random, math, numbers, ratio, complex, and valarray facilities grouped for quick lookup.

Reference

All Container Adapters

A compact index of stack, queue, and priority_queue along with the core behavioral differences that matter in practice.

Reference

All Ranges Views

A compact scan page for the main standard range views, adaptors, and adjacent range utility facilities.

Reference

All Operators

A compact scan page listing the main C and C++ operators, punctuators, and alternative operator tokens.

Reference

All Formatter and Printing Customization Points

A compact scan page for formatter specializations, format context types, and print-oriented customization hooks in modern C++.

Reference

All Unordered Lookup and Bucket Operations

A compact scan page for lookup, bucket inspection, load-factor control, and rehash-related operations on unordered containers.

Reference

All Comparison and Ordering Facilities

A compact scan page for equality, ordering categories, comparators, and three-way comparison support in modern C++.

Reference

Header Reference: <functional>

Call wrappers, invocation utilities, binders, hashing, and function-object helpers from <functional>.

Reference

Header Reference: <memory>

Smart pointers, allocators, uninitialized-memory helpers, and the ownership vocabulary provided by the memory header.

Reference

Header Reference: <shared_mutex>

Reader-writer mutex types and shared lock wrappers from <shared_mutex>.

Reference

Header Reference: <string>

The main string types, common operations, and usage patterns around std::basic_string and std::string.

Reference

All Numeric Algorithms

A compact scan page for the main standard numeric algorithms from <numeric> and adjacent math-oriented facilities.

Reference

All Ordered-Container Facilities

A compact scan page for tree-based associative containers, ordered lookup operations, and comparator-driven behavior.

Reference

Header Reference: <new>

Allocation support utilities, placement new, alignment helpers, and allocation-related exception types from <new>.

Reference

All Heap Algorithms

A compact scan page for heap construction, maintenance, and ordering algorithms from <algorithm> and the related priority_queue context.

Reference

Header Reference: <variant>

The main variant type, visitation model, and usage patterns around sum types in modern C++.

Reference

All C++ Keywords

A compact scan page listing C++ keywords and keyword-like alternative tokens in grouped form.

Reference

C++ Language Reference

C++ keywords, core type-system vocabulary, declarations, object model terms, and modern language features.

Reference

Header Reference: <numbers>

Standard mathematical constants such as pi, e, and related compile-time numeric constants from <numbers>.

Reference

Header Reference: <charconv>

Locale-independent low-level numeric parsing and formatting utilities from <charconv>.

Reference

Header Reference: <future>

Futures, promises, packaged tasks, async launch, and related asynchronous result-passing facilities from <future>.

Reference

Header Reference: <optional>

The main type, operations, and usage patterns around std::optional and optional-style APIs.

Reference

All Synchronization Objects

A compact scan page for mutexes, condition variables, semaphores, latches, barriers, and async coordination objects in the C++ standard library.

Reference

All Standard Exceptions

A compact scan page for the main standard C++ exception types, error-code types, and adjacent failure-reporting facilities.

Reference

All Numeric Constants and Ratio Helpers

A compact scan page for standard mathematical constants from <numbers> and compile-time rational helpers from <ratio>.

Reference

All Exception Transport and Termination Facilities

A compact scan page for exception_ptr transport, nested exceptions, uncaught-exception queries, and termination handlers.

Reference

Header Reference: <any>

The type-erased container std::any, its tradeoffs, and when it is an appropriate tool.

Reference

Alphabetical Index

A quick alphabetized map of major C and C++ keywords, headers, types, operators, and utility families.

Reference

C Standard Library

C standard headers, common types, macros, and the main families of C library functions.

Reference

All Set Algorithms

A compact scan page for sorted-range set algorithms from <algorithm> and their ranges-based counterparts.

Reference

All Smart-Pointer Operations

A compact scan page for creation, ownership queries, casts, resets, and observer operations on standard smart pointers.

Reference

All C++ Containers

A compact scan page listing the main standard C++ containers, adapters, and contiguous views.

Reference

All Unordered-Container Facilities

A compact scan page for hash-based containers, hashing support, bucket interfaces, and practical lookup rules.

Reference

Header Reference: <map>

Ordered map and set-family associative container facilities declared in <map>.

Reference

Header Reference: <compare>

Three-way comparison categories, defaulted comparisons, and comparison helpers from <compare>.

Reference

C Language Reference

C keywords, types, operators, storage classes, qualifiers, and preprocessor building blocks.

Reference

Header Reference: <array>

Fixed-size contiguous sequence container facilities from <array>.

Reference

Header Reference: <unordered_set>

Hash-based key-only associative container facilities declared in <unordered_set>.

Reference

Header Reference: <forward_list>

Singly-linked list container facilities from <forward_list>.

Reference

Header Reference: <numeric>

Accumulation, reduction, scans, inner products, and integer utility algorithms provided by <numeric>.

Reference

Header Reference: <tuple>

The main tuple types, helpers, and tuple-like customization points provided by <tuple>.

Reference

Header Reference: <sstream>

String-based stream classes and in-memory stream formatting/parsing support from <sstream>.

Reference

All Uninitialized-Memory Helpers

A compact index of raw-storage construction, destruction, and uninitialized algorithms used in low-level library code.

Reference

Header Reference: <utility>

Move/forward helpers, pairs, piecewise construction, integer sequences, and general-purpose utility facilities from <utility>.

Reference

Header Reference: <mdspan>

Multidimensional non-owning views, layouts, and accessor policies from <mdspan>.

Reference

Header Reference: <ranges>

The ranges namespace, views, concepts, and algorithms that support lazy pipelines and clearer sequence processing.

Reference

Header Reference: <iterator>

Iterator tags, traits, adapters, inserters, and iterator utility helpers from <iterator>.

Reference

Header Reference: <algorithm>

Search, sort, partition, transform, set, and heap algorithms from the core STL algorithms header.

Reference

Header Reference: <barrier>

Phase-based synchronization with reusable barriers from <barrier>.

Reference

All Tuple and Pair Helpers

A compact index of pair and tuple construction, access, forwarding, concatenation, and apply-style helper facilities.

Reference

Header Reference: <stop_token>

Cooperative cancellation token facilities from <stop_token>.

Reference

All Associative Containers

A compact index of ordered and unordered associative containers, lookup operations, and container-selection rules.

Reference

Standard Exceptions and Errors

The main C++ exception families, error-code facilities, and adjacent C error-reporting mechanisms.

Reference

All Text and Formatting Facilities

A compact scan page for strings, string views, char conversion, formatting, printing, regex, streams, and locale-adjacent text facilities.

Reference

Header Reference: <atomic>

Atomic types, atomic references, fences, waits, and memory-ordering facilities from <atomic>.

Reference

All Sequence-Container Modifier Operations

A compact scan page for the core insertion, erase, resize, and structural modifier operations shared across sequence containers.

Reference

C++ Algorithms and Ranges

Classic STL algorithms, numeric algorithms, projections, iterators, and modern range views in one focused reference.

Reference

Header Reference: <semaphore>

Counting and binary semaphore facilities from <semaphore>.

Reference

Header Reference: <exception>

Base exception facilities, exception transport helpers, and termination hooks provided by <exception>.

Reference

All Concurrency Primitives

A compact scan page for the main thread, lock, waiting, task, and atomic primitives in the C++ standard library.

Reference

All Comparison Function Objects

A compact scan page for comparison functors, transparent comparators, and ordering helpers used across algorithms and containers.

Reference

Header Reference: <iostream>

Standard stream objects and high-level stream initialization support from <iostream>.

Reference

Operators and Punctuators

Arithmetic, comparison, logical, bitwise, access, cast, and punctuation tokens across C and C++.

Reference

All Standard Headers

A compact scan page listing standard C and C++ headers in one place, grouped for quick lookup.

Reference

All Chrono Clocks and Calendar Types

A compact scan page for clocks, durations, time points, calendar types, and time-zone related facilities from <chrono>.

Reference

All Time-Zone Database Facilities

A compact index of the C++ chrono time-zone database, zoned-time types, and related lookup utilities.

Reference

Header Reference: <latch>

One-shot coordination point facilities from <latch>.

Reference

All String Search and Substring Operations

A compact scan page for search, prefix/suffix checks, substring access, and related string-query operations.

Reference

Header Reference: <fstream>

File stream classes and stream-based file I/O facilities from <fstream>.

Reference

All Allocator Traits and Pointer Helpers

A compact scan page for allocator_traits, pointer access helpers, address utilities, and allocation-adjacent support types.

Reference

C++ Containers and Views

Sequence containers, associative containers, adapters, spans, mdspan, and the main rules that matter when choosing among them.

Reference

Header Reference: <span>

The non-owning contiguous view type std::span and the lifetime rules that matter when using it.

Reference

C Standard Headers Index

A grouped index of C standard headers with one-line summaries of what each header provides.

Reference

Header Reference: <set>

Ordered set-family associative container facilities declared in <set>.

Reference

All Chrono Duration and Time-Point Utilities

A compact scan page for duration arithmetic, time_point manipulation, literals, and rounding/conversion helpers from <chrono>.

Reference

All Allocator and PMR Facilities

A compact index of allocator-aware types, polymorphic memory resources, and allocation-adjacent standard facilities.

Reference

Header Reference: <source_location>

Call-site source metadata via std::source_location for diagnostics, logging, and lightweight tracing.

Reference

Header Reference: <unordered_map>

Hash-based key-value associative container facilities declared in <unordered_map>.

Reference

Header Reference: <format>

The formatting API centered on std::format and formatter customizations.

Reference

Header Reference: <condition_variable>

Condition variables and predicate-based blocking waits from <condition_variable>.

Reference

Header Reference: <random>

Random-number engines, distributions, seeding facilities, and related helpers from <random>.

Reference

Header Reference: <locale>

Locale objects, facets, and locale-aware text, numeric, and time formatting/parsing support from <locale>.

Reference

Header Reference: <expected>

The value-or-error result type std::expected and the main patterns it supports in modern C++ APIs.

Reference

Header Reference: <queue>

Queue, priority_queue, and related container-adapter facilities from <queue>.

Reference

Header Reference: <concepts>

Standard concepts and comparison constraints used to write clearer constrained templates.

Reference

C++ Standard Headers Index

A grouped index of C++ standard headers with one-line summaries of the main facilities each header provides.

Reference

All Smart Pointers and Ownership Types

A compact index of ownership, observing, and lifetime-adjacent utility types in modern C++.

Reference

Header Reference: <deque>

Double-ended sequence container facilities from <deque>.

Reference

Header Reference: <vector>

The main types, operations, guarantees, and usage patterns associated with std::vector.

Reference

All Sequence Containers

A compact index of the standard sequence containers, adapters, and the main tradeoffs that matter when choosing among them.

Reference

All Contiguous-Container and View Relationships

A compact scan page for how vector, array, string, string_view, span, and mdspan relate through contiguous storage and borrowing semantics.

Reference

Header Reference: <string_view>

Non-owning string views, borrowed text access, and string-like observation utilities from <string_view>.

Reference

All C Standard Headers

A compact scan page listing C standard headers only, optimized for quick lookup.

Reference

All Atomics and Memory Ordering

A compact scan page for standard atomic types, operations, fences, and memory-order vocabulary.

Reference

All Filesystem and Path Operations

A compact index of path manipulation, directory traversal, status queries, and file operations from the standard filesystem library.

Reference

Header Reference: <filesystem>

The filesystem path type, directory iteration, and file-operation utilities provided by the standard filesystem library.

Reference

All Vocabulary Types

A compact index of common standard vocabulary types used to express optionality, alternatives, errors, ownership, views, and generic values.

Reference

All Stream Types and I/O Facilities

A compact scan page for standard stream objects, stream classes, string/file streams, and related I/O building blocks.

Reference

All C Keywords

A compact scan page listing standard C keywords in grouped form for quick lookup.

Reference

Header Reference: <ostream>

Formatted and unformatted output stream interfaces, insertion behavior, and output-state handling from <ostream>.

Reference

All Range Algorithms

A compact scan page for the ranges-based algorithm family that operates directly on ranges and supports projections.

Reference

Header Reference: <mutex>

Mutex types, lock wrappers, and generic lock coordination helpers provided by <mutex>.

Reference

All Path Decomposition Operations

A compact scan page for path component access, lexical transforms, and decomposition helpers from the filesystem path API.

Reference

All Callable Wrappers and Adapters

A compact scan page for invocation utilities, function wrappers, adapters, and callable helper types in the standard library.

Reference

Header Reference: <stdexcept>

Standard logic_error and runtime_error families provided by <stdexcept>.

Reference

C Preprocessor and Macros

Conditional compilation, include guards, predefined macros, macro forms, and the main preprocessor directives in C and C++.

Reference

All Iterator Adapters

A compact scan page for reverse, move, insert, and stream iterator adapters plus the related helper functions.

Reference

All Callable Concepts and Invocability Traits

A compact scan page for callable-related concepts, invocability traits, and result-type query utilities.

Reference

Header Reference: <list>

Doubly-linked list container facilities from <list>.

Reference

Header Reference: <regex>

Regular expression types, match results, iterators, and algorithms provided by <regex>.

Reference

C++ Concurrency Library

Threads, jthread, stop tokens, mutexes, atomics, futures, semaphores, latches, barriers, and the main coordination tools in the standard library.

Reference

Header Reference: <system_error>

Error codes, categories, conditions, and system_error exception support from <system_error>.

Reference

All Locale and Facet Facilities

A compact scan page for locale objects, classic facet categories, and locale-aware text and numeric processing facilities.

Reference

Header Reference: <type_traits>

Compile-time type queries, transformations, and trait utilities from <type_traits>.

Reference

All Ordered Bound Operations

A compact scan page for lower_bound, upper_bound, equal_range, and related ordered-lookup operations across sorted ranges and ordered containers.

Reference

C++ Standard Library

C++ standard headers, major facilities, and the main types, algorithms, and utilities you will look up repeatedly.

Reference

All Error-Code Facilities

A compact index of non-throwing error reporting facilities centered on <system_error> and adjacent standard-library types.

Reference

Header Reference: <istream>

Formatted and unformatted input stream interfaces, extraction behavior, and input-state handling from <istream>.

Reference

Header Reference: <thread>

The main thread and stop-token facilities from the standard thread header.

Reference

Header Reference: <print>

The formatted output helpers std::print and related print-oriented facilities in modern C++.

Reference

Header Reference: <typeinfo>

Runtime type information objects and related exception types provided by <typeinfo>.

Reference

Header Reference: <stack>

Stack adapter facilities declared in <stack>.

Reference

Header Reference: <chrono>

Durations, time points, clocks, calendars, and time-zone-related facilities provided by <chrono>.