5 Quantities and units library [quantities]

5.6 Quantity [qty]

5.6.9 Unary operations [qty.unary.ops]

In the following descriptions, let @ be the operator.
constexpr QuantityOf<quantity_spec> auto operator+() const requires see below; constexpr QuantityOf<quantity_spec> auto operator-() const requires see below;
Effects: Equivalent to: return ​::​mp_units​::​quantity{@numerical-value, reference};
Remarks: The expression in the requires-clause is equivalent to: requires(const rep v) { { @v } -> std::common_with<rep>; }
template<Mutable<quantity> Q> friend constexpr decltype(auto) operator++(Q&& q) requires see below; template<Mutable<quantity> Q> friend constexpr decltype(auto) operator--(Q&& q) requires see below;
Effects: Equivalent to @q.numerical-value.
Returns: std​::​forward<Q>(q).
Remarks: The expression in the requires-clause is equivalent to: requires(rep& v) { { @v } -> std::same_as<rep&>; }
constexpr QuantityOf<quantity_spec> auto operator++(int) requires see below; constexpr QuantityOf<quantity_spec> auto operator--(int) requires see below;
Effects: Equivalent to: return ​::​mp_units​::​quantity{numerical-value@, reference};
Remarks: The expression in the requires-clause is equivalent to: requires(rep& v) { { v@ } -> std::common_with<rep>; }