Helper for Assert()/Assume().
Synopsis
Declared in <util/check.h>
template<
bool IS_ASSERT,
typename T>
constexpr
T&&
inline_assertion_check(
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 aborts when it is falsey and checking is active. |
loc |
The source location of the check. |
assertion |
The stringified checked expression. |
Created with MrDocs