mp_units::operator/

Division operator

Synopsis

Declared in <mp-units/framework/quantity.h>

template<
    auto R1,
    typename Rep1,
    auto R2,
    typename Rep2>
requires InvocableQuantities<std::divides<>, quantity<R1, Rep1>, quantity<R2, Rep2>>
[[nodiscard]]
constexpr
Quantity auto
operator/(
    quantity<R1, Rep1> const& lhs,
    quantity<R2, Rep2> const& rhs);

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

NameDescription
lhsThe left operand
rhsThe right operand