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

Name

Description

val

The value to check; the call throws when it is falsey.

loc

The source location of the check.

assertion

The stringified checked expression.

Created with MrDocs