mp_units::check_non_negative::operator()

Checks that v is non-negative and reports a violation otherwise.

Synopsis

Declared in <mp-units/overflow_policies.h>

template<Quantity V>
constexpr
V
operator()(V v) const;

Return Value

v unchanged, if it is non-negative

Parameters

NameDescription
vthe value to check