mp_units::wrap_to_range::operator()

Wraps v into the half-open range [min, max).]

Synopsis

Declared in <mp-units/overflow_policies.h>

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

Return Value

v shifted by a multiple of max - min so that it lies in [min, max)]

Parameters

NameDescription
vthe value to wrap