Oct 12, 2022

[C++23] std::unreachable / gcc::__builtin_unreachable

std::unreachable

If control flow reaches the point of the std::unreachable, the program is undefined. It is useful in situations where the compiler cannot deduce the unreachability of the code.


Reference:

No comments:

Post a Comment

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