mp_units::operator/¶
Division operator
Synopsis¶
Declared in <mp-units/framework/quantity.h>
template<auto R1, typename Rep1, typename Value>
requires(!Quantity<Value>) && (!Reference<Value>) &&
InvokeResultOf<get_quantity_spec(R1), std::divides<>, Rep1, const Value&>
[[nodiscard]] constexpr QuantityOf<get_quantity_spec(R1)> auto operator/(quantity<R1, Rep1> const& q, Value const& val);
Note
This function is a hidden friend of quantity, 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 |
|---|---|
| q | The left operand |
| val | The right operand |