mp_units::quantity::quantity

Construct from rep

Synopsis

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

[[nodiscard]]
constexpr
explicit(!mp_units::implicitly_convertible(quantity_spec, dimensionless))
quantity(rep val)
requires detail::ExplicitFromNumber<reference>;

Return Value

NOTE

The return value should not be discarded.

Parameters

NameDescription
valThe object to construct from