Showing posts with label cpp23_std. Show all posts
Showing posts with label cpp23_std. Show all posts

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: