mp_units::constrained::operator-=

Subtraction assignment operator

Synopsis

Declared in <mp-units/constrained.h>

constexpr
constrained&
operator-=(constrained const& rhs)
requires requires(T& a, const T b) {
      { a -= b } -> std::same_as<T&>;
    };

Return Value

Reference to the current object

Parameters

NameDescription
rhsThe right operand