C++ Language Reference

C++ Language Reference

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

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.

C++ Language Reference

C++ keywords

Control flow and exceptions

Types, declarations, and object model

Casts and dynamic facilities

Function and coroutine vocabulary

Modules and alternative tokens

Boolean and literals

Fundamental and core vocabulary types

Fundamental types

Value categories and references

Storage duration and lifetime terms

Operators and punctuators

Common operator groups

Operator overloading targets

For a denser operator-by-operator summary, including precedence-oriented groupings and token families, see Operators and punctuators.

High-value modern C++ language features

Class and template terms you should know

Practical lookup checklist

Adjacent reference pages

Example in practice

struct Point {
    int x{};
    int y{};
};

int main() {
    Point p{3, 4};
    return p.x < p.y;
}