mp_units::quantity::quantity

Constructor

Synopsis

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

template<Reference R2>
requires (equivalent(unit, get_unit(R2{})))
[[nodiscard]]
constexpr
quantity(
    rep val,
    R2);

Return Value

NOTE

The return value should not be discarded.

Parameters

NameDescription
valThe object to construct from