constexpr started as a way to mark simple constants. Then it grew. And grew. Now it's an entire execution engine inside the compiler, running real algorithms with loops, branches, allocations, and exceptions.
Posts tagged “consteval” (2)
The best code is code that runs before your program starts. constexpr makes the compiler your runtime.