Easton Man's Channel
03:33 · Mar 28, 2023 · Tue
Daniel Lemire's blog
C++20: consteval and constexpr functions
Telegraph
|
source
Telegraph
C++20: consteval and constexpr functions
Optimizing compilers seek try to push as much of the computation as possible at compile time. In modern C++, you can declare a function as ‘constexpr’, meaning that you state explicitly that the function may be executed at compile time. The constexpr qualifier…
Home
Powered by
BroadcastChannel
&
Sepia