Detecting Compile-time vs Runtime in C++: if consteval vs std::is_constant_evaluated()

C++ has been steadily adding features to let programmers distinguish code that runs at compile time from code that runs at runtime. Two important tools for this are the …