mp_units::operator+

Addition operator

Synopsis

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

template<
    typename FwdQ,
    PointOrigin PO,
    Quantity Q = std::remove_cvref_t<FwdQ>>
requires PointOriginFor<PO, Q::quantity_spec>
[[nodiscard]]
constexpr
QuantityPoint auto
operator+(
    FwdQ&& q,
    PO po);

NOTE

This function is a hidden friend of relative_point_origin, declared inside an implementation-defined base class: it can be found only through argument-dependent lookup.

Return Value

NOTE

The return value should not be discarded.

Parameters

NameDescription
qThe left operand
poThe right operand