Skip to main content

[[noreturn]] void panic(const std::string& msg)

Description

Either throws or aborts with a message, depending on the global panic_solution setting.

Parameters

const std::string& msg

template <typename... FmtParams>
[[noreturn]] void panic(
    fmt::format_string<FmtParams...> fmt_string,
    FmtParams&&... fmt_args)

Description

Either throws or aborts with a message, depending on the global panic_solution setting.

Template Parameters

FmtParams

Parameters

fmt::format_string<FmtParams...> fmt_string
FmtParams&&... fmt_args