mp_units::quantity::max

Returns a quantity holding the representation type's highest finite value.

Synopsis

Declared in <mp-units/framework/quantity.h>

[[nodiscard]]
constexpr
static
quantity
max() noexcept
requires requires { representation_values<rep>::max(); };

Return Value

A quantity equal to representation_values<rep>::max() expressed in reference.

NOTE

The return value should not be discarded.