Skip to content

mp_units::si::operator+

Addition operators

Synopses

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

Addition operator

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);

» more...

Addition operator

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);

» more...

Addition operator

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);

» more...

Addition operator

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);

» more...

Return Value

Note

The return value should not be discarded.