All C++ Keywords

All C++ Keywords

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

How to use this reference page

Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.

  • Scan the top of the page first to identify the primary types, functions, or algorithm families involved.
  • Use the nearby-page links when your question is really about a companion header, related algorithm family, or broader subsystem.
  • Validate tricky behavior with a small compileable example before relying on memory for details like invalidation, ordering, allocation, or lifetime rules.

All C++ Keywords

This page is optimized for scanning. Use C++ language reference when you want more explanation.

Core control flow

Declarations and object model

Types, storage, and qualifiers

Dynamic, reflection, and type queries

Functions, special names, and literals

Compile-time and modern keywords

Alternative operator tokens

Legacy or implementation-specific notes

Practical use

Example in practice

int main() {
    int total = 0;
    for (int i = 0; i < 4; ++i) {
        total += i;
    }

    return total == 6 ? 0 : 1;
}