January 2018
Intermediate to advanced
374 pages
9h 53m
English
The constexpr keyword tells the compiler that a certain function is intended to be evaluated at compile time if all the conditions allowing for compile-time evaluation are fulfilled. Otherwise, it will execute at runtime, like a regular function.
A constexpr function has a few restrictions; it is not allowed to do the following:
Read now
Unlock full access