Addition operator
Declared in <mp-units/framework/quantity_point.h>
template<
PointOrigin PO,
typename FwdQ,
Quantity Q = std::remove_cvref_t<FwdQ>>
requires PointOriginFor<PO, Q::quantity_spec>
[[nodiscard]]
constexpr
QuantityPoint auto
operator+(
PO po,
FwdQ&& q);
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.
The return value should not be discarded.
| Name | Description |
|---|---|
| po | The left operand |
| q | The right operand |