The usage of constexpr
is quite straightforward which is to make sure the code can be evaluated at the compile time itself.
But the latest features of C++ 20 which provides constinit
and consteval
are little bit confusing. Can someone provide the practical use case of constinit
and consteval
?