inline_check_non_fatal

Helper for CHECK_NONFATAL().

Synopsis

Declared in <util/check.h>

template<typename T>
T&&
inline_check_non_fatal(
    T&& val,
    std::source_location const& loc,
    std::string_view assertion);

Return Value

The forwarded value when the check passes.

Parameters

NameDescription
valThe value to check; the call throws when it is falsey.
locThe source location of the check.
assertionThe stringified checked expression.