mp_units::quantity::operator/=

Division assignment operators

Synopses

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

Divides *this by a dimensionless quantity and assigns the result to *this.

template</* implementation-defined */ Q2>
requires detail::ScalarRepConvertible<typename Q2::rep, rep> && requires(rep& a, const Q2::rep b) {
      { a /= b } -> std::same_as<rep&>;
    }
constexpr
quantity&
operator/=(Q2 const& rhs) &;
» more...

Divides *this by a scalar value and assigns the result to *this.

template</* implementation-defined */ Value>
requires requires(rep& a, const Value b) {
      { a /= b } -> std::same_as<rep&>;
    }
constexpr
quantity&
operator/=(Value const& val) &;
» more...

Return Value

*this

Parameters

NameDescription
rhsthe dimensionless quantity to divide by
valthe scalar value to divide by