constexpr C++

Опубликовано: 28 Сентябрь 2024
на канале: CppNuts
26,158
608

JOIN ME :
YouTube 🎬    / @cppnuts  
Patreon 🚀   / cppnuts  

Constexpr In C++11
------------------
In C++11, constexpr function bodies could only contain a very limited set of syntaxes,
including (but not limited to): typedef, using, and a single return statement.

Constexpr In C++14
------------------
In C++14, the set of allowable syntax expands greatly to include the most common syntax
such as if statements, multiple returns, loops, etc.

#cpp #tutorial #programming #cpp11 #computerscience #softwareengineering