Constructs a quantity directly from a numerical value, without an explicit reference.
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 numerical value to store |