Immediate functions or the functions which have consteval keyword before their return type has been introduced with the release of C 20 , consteval functions are the functions that must be evaluated at compile time to produce a constant. It serves the same functionality as constexpr function but with little more restriction.
So , before understanding the consteval functions let's have a look at constexpr functions.
Immediate Function is a new feature introduced in C 20 in 2020.
What is conste...
Published on February 15, 2021 00:55