C++ keywords - cppreference.com
26 apr. 2025 · These keywords are also considered reserved in attributes (excluding attribute argument lists), but some implementations handle them the same as the others.(since C++11) In addition to …
Namespaces - cppreference.com
14 aug. 2024 · Namespaces provide a method for preventing name conflicts in large projects. Entities declared inside a namespace block are placed in a namespace scope, which prevents them from …
operator new, operator new [] - cppreference.com
14 aug. 2024 · The keyword static is optional for these functions: whether used or not, the allocation function is a static member function. The new expression looks for appropriate allocation function's …
Modules (since C++20) - cppreference.com
13 sep. 2024 · Most C++ projects use multiple translation units, and so they need to share declarations and definitions across those units. The usage of headers is prominent for this purpose, an example …
C++ keyword: inline - cppreference.com
14 aug. 2024 · Usage inline specifier for functions and variables(since C++17) inline namespace definition (since C++11)
inline specifier - cppreference.com
14 aug. 2024 · The inline specifier, when used in a function's decl-specifier-seq, declares the function to be an inline function. A function defined entirely inside a class/struct/union definition, whether it's a …
Lambda expressions (since C++11) - cppreference.com
2 mrt. 2025 · The C++ closures do not extend the lifetimes of objects captured by reference. Same applies to the lifetime of the current *this object captured via this. ↑ Although function return type …
new expression - cppreference.com
19 dec. 2024 · As described in allocation function, the C++ program may provide global and class-specific replacements for these functions. If the new expression begins with the optional :: operator, …
C++ keyword: thread_local (since C++11) - cppreference.com
15 mrt. 2025 · C++ keyword: thread_local (since C++11) C++
C++ keyword:static - cppreference.com
26 nov. 2024 · < cpp | keyword C++ Compiler support Freestanding and hosted Language Standard library Standard library headers Named requirements Feature test macros (C++20) Language support …