Subtracts a quantity from the underlying quantity from the origin and assigns the result to *this.

Synopsis

Declared in <mp‐units/framework/quantity_point.h>

template<
    auto R2,
    typename Rep2>
requires (mp_units::implicitly_convertible(get_quantity_spec(R2), quantity_spec)) &&
            detail::ImplicitConversion<get_unit(R2), Rep2, unit, rep> &&
            requires(const quantity_type q) { quantity_from_origin_is_an_implementation_detail_ ‐= q; }
constexpr
quantity_point&
operator‐=(quantity<R2, Rep2> const& q) &;

Return Value

*this, after the subtraction.

Parameters

Name

Description

q

The quantity to subtract.

Created with MrDocs