constexpr

constexpr is a keyword introduced in C++11 that allows one to write functions that can be evaluated at compile time.