Mar 5, 2019

[C++20] consteval

Immediate functions:
[paper] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1073r3.html
consteval keyword:
https://en.cppreference.com/w/cpp/language/consteval


Main purpose of having 'consteval', aka. Immediate functions is to
have functions that rely on compiler data structures that need not be preserved in the binary.

Unlike 'constexpr' decorated function, which can be used at run-time.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.