C++ Language Reference
C++ Language Reference
C++ keywords, core type-system vocabulary, declarations, object model terms, and modern language features.
C++ Language Reference
C++ keywords, core type-system vocabulary, declarations, object model terms, and modern language features.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
if, else, switch, case, defaultfor, while, do, break, continue, goto, returntry, catch, throwclass, struct, union, enum, typename, typedef, usingtemplate, concept, requiresnamespace, inline, explicit, friend, virtual, override, finalpublic, protected, privatemutable, constexpr, consteval, constinit, const, volatilestatic, thread_local, extern, registerstatic_cast, dynamic_cast, const_cast, reinterpret_castnew, delete, typeid, decltype, sizeof, alignof, noexceptauto, operator, this, nullptrco_await, co_yield, co_returnmodule, import, exportand, and_eq, bitand, bitor, compl, not, not_eq, or, or_eq, xor, xor_eqtrue, false, char8_t, char16_t, char32_t, wchar_tboolchar, signed char, unsigned char, wchar_t, char8_t, char16_t, char32_tshort, int, long, long long and unsigned formsfloat, double, long doublevoid, std::nullptr_tT&T&&., ->, .*, ->*(), []?:::<=>For a denser operator-by-operator summary, including precedence-oriented groupings and token families, see Operators and punctuators.
if constexprconstexpr and consteval computation<compare><type_traits><concepts><utility><iterator><typeinfo><new>struct Point {
int x{};
int y{};
};
int main() {
Point p{3, 4};
return p.x < p.y;
}