4#include <source_location>
30 requires std::constructible_from<std::string_view, T>
32 StringViewSourceLoc(
const T &msg,
const std::source_location loc = std::source_location::current()) noexcept
void panic(const StringViewSourceLoc &s)
Unconditionally terminates the program with a panic message.
void assert_or_panic(bool condition, const StringViewSourceLoc &s)
Conditionally panics if the given condition is false.
bool is_panic_stacktrace_enabled()
Returns whether stacktrace generation is enabled on panic.
void set_panic_stacktrace_enabled(bool enabled)
Enables or disables stacktrace generation on panic.
A wrapper for std::string_view with a taggable std::source_location.
StringViewSourceLoc(const T &msg, const std::source_location loc=std::source_location::current()) noexcept
Constructs a StringViewSourceLoc with a message and optional source location.
std::source_location loc_