Constructs a quantity from a representation value and the inverse of a reference
Declared in <mp-units/framework/reference.h>
template<
typename FwdRep,
Reference R,
RepresentationOf<get_quantity_spec(R{})> Rep = std::remove_cvref_t<FwdRep>>
requires (!detail::OffsetUnit<decltype(get_unit(R{}))>)
[[nodiscard]]
constexpr
Quantity auto
operator/(
FwdRep&& lhs,
R r);
quantity of the inverse of reference r holding the value of lhs
The return value should not be discarded.
| Name | Description |
|---|---|
| lhs | representation value to become the quantity's numerical value |
| r | reference whose inverse defines the resulting quantity's specification and unit |