Construct from rep
Declared in <mp-units/framework/quantity.h>
[[nodiscard]]
constexpr
explicit(!mp_units::implicitly_convertible(quantity_spec, dimensionless))
quantity(rep val)
requires detail::ExplicitFromNumber<reference>;
The return value should not be discarded.
| Name | Description |
|---|---|
| val | The object to construct from |