mp_units::check_in_range::operator()

Checks that v lies within [min, max]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 within bounds

Parameters

NameDescription
vthe value to check