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

Function throw_or_abort

include/function2/function2.hpp:573–576  ·  view source on GitHub ↗

Calls std::abort on empty function calls

Source from the content-addressed store, hash-verified

571}
572/// Calls std::abort on empty function calls
573[[noreturn]] inline void
574throw_or_abort(std::false_type /*is_throwing*/) noexcept {
575 std::abort();
576}
577/// Throws bad_function_call on empty funciton calls
578[[noreturn]] inline void throw_or_abort(std::true_type /*is_throwing*/) {
579#ifdef FU2_HAS_DISABLED_EXCEPTIONS

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected