mp_units::operator/¶
Division operator
Synopsis¶
Declared in <mp-units/framework/unit_definitions.h>
template<typename FwdRep, Reference R,
RepresentationOf<get_quantity_spec(R{})> Rep = std::remove_cvref_t<FwdRep>>
requires(!OffsetUnit<decltype(get_unit(R{}))>)
[[nodiscard]] constexpr Quantity auto operator/(FwdRep && lhs, R rhs);
Note
This function is a hidden friend of named_unit<Symbol, U>, declared inside an implementation-defined base class: it can be found only through argument-dependent lookup.
Return Value¶
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| lhs | The left operand |
| rhs | The right operand |