constexpr
The constexpr is the qualifier keyword for compile-time computation; non-throwing functions, variables, if, and switch can be constexpr.
Syntax
constexpr int32 lucky_number = 7;
constexpr int32 computeLuckySeven()
{
return 7;
}
if constexpr (condition)
{
}
switch constexpr (CompileTimeValue)
{
}