MCPcopy Create free account
hub / github.com/Naios/function2 / throw_or_abortnoexcept

Function throw_or_abortnoexcept

include/function2/function2.hpp:568–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566/// If the function is qualified as noexcept, the call will never throw
567template <bool IsNoexcept>
568[[noreturn]] void throw_or_abortnoexcept(
569 std::integral_constant<bool, IsNoexcept> /*is_throwing*/) noexcept {
570 std::abort();
571}
572/// Calls std::abort on empty function calls
573[[noreturn]] inline void
574throw_or_abort(std::false_type /*is_throwing*/) noexcept {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected