Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/language"

From cppreference.com
< cpp
(Added a link to “conflicting declarations”.)
m (fmt)
Line 4: Line 4:
 
This is a reference of the core C++ language constructs.
 
This is a reference of the core C++ language constructs.
  
{| cellpadding="5"
+
{|cellpadding="5"
|- valign="top"
+
|-valign="top"
 
|
 
|
 
 
'''{{rl|basic concepts|Basic concepts}}'''
 
'''{{rl|basic concepts|Basic concepts}}'''
 
<div class="mainpagediv">
 
<div class="mainpagediv">
Line 33: Line 32:
 
'''{{rlp|keyword|Keywords}}'''
 
'''{{rlp|keyword|Keywords}}'''
 
<div class="mainpagediv">
 
<div class="mainpagediv">
<!-- -->
+
<!---->
 
</div>
 
</div>
  
Line 82: Line 81:
 
{{nbsp}} {{rl|user literal|user-defined (UDL)}} {{mark c++11}}<br>
 
{{nbsp}} {{rl|user literal|user-defined (UDL)}} {{mark c++11}}<br>
 
</div>
 
</div>
 
 
|
 
|
 
 
'''{{rl|declarations|Declarations}}'''
 
'''{{rl|declarations|Declarations}}'''
 
<div class="mainpagediv">
 
<div class="mainpagediv">
Line 154: Line 151:
 
{{rl|transactional memory|{{tt|synchronized}}/{{tt|atomic}}}} {{mark since tm ts}}<br>
 
{{rl|transactional memory|{{tt|synchronized}}/{{tt|atomic}}}} {{mark since tm ts}}<br>
 
</div>
 
</div>
 
 
|
 
|
 
 
'''{{rl|classes|Classes}}'''
 
'''{{rl|classes|Classes}}'''
 
<div class="mainpagediv">
 
<div class="mainpagediv">

Revision as of 03:42, 12 December 2023

 
 
C++ language
General topics
Flow control
Conditional execution statements
if
Iteration statements (loops)
for
range-for (C++11)
Jump statements
Functions
Function declaration
Lambda function expression
inline specifier
Dynamic exception specifications (until C++17*)
noexcept specifier (C++11)
Exceptions
Namespaces
Types
Specifiers
const/volatile
decltype (C++11)
auto (C++11)
constexpr (C++11)
consteval (C++20)
constinit (C++20)
Storage duration specifiers
Initialization
Expressions
Alternative representations
Literals
Boolean - Integer - Floating-point
Character - String - nullptr (C++11)
User-defined (C++11)
Utilities
Attributes (C++11)
Types
typedef declaration
Type alias declaration (C++11)
Casts
Memory allocation
Classes
Class-specific function properties
explicit (C++11)
static

Special member functions
Templates
Miscellaneous
 

This is a reference of the core C++ language constructs.

Basic concepts

Keywords

Preprocessor

Expressions

Declarations

Initialization

Functions

Statements

Classes

Templates

Exceptions

Miscellaneous

Idioms

See also

C documentation for C language constructs