mp_units::quantity::operator*=

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

Synopsis

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

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& other) &;

Return Value

*this

Parameters

NameDescription
otherthe dimensionless quantity to multiply by