Category : constexpr

Is it guaranteed that constexpr function will be evaluated at a compile time, or it’s line inline that compiler can decided to evaluate it at runtime instead? constexpr int Fun(/*maybe some parameters*/); int main() { constexpr int val = Fun(/*maybe some parameters*/); } calculation of val always takes zero time at the runtime? Source: Windows ..

Read more