mp_units::reflect_in_range::operator()

Reflects v into the closed range [min, max].

Synopsis

Declared in <mp-units/overflow_policies.h>

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

Return Value

v folded back into [min, max]by bouncing off the boundaries

Parameters

NameDescription
vthe value to reflect