constexpr in C++11

constexpr in C++11

Simplified InFive

8 лет назад

2,151 Просмотров

Examples and key things about constexpr specifier in C++11, constexpr functions and variables
From C++14, if,switch,for,while,do-while are allowed and local variable declaration are alos allowed in Constexpr functions.
In C++11, constexpr methods are implicitly const. In C++14, they are not.

Тэги:

#constexpr_specifier #C++11 #constexpr_functions #constexpr_variables #constexpr #C++14 #C++17
Ссылки и html тэги не поддерживаются


Комментарии: