Skip to content

mp_units::quantity_point::quantity_point

Constructor

Synopsis

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

template<typename FwdQ, PointOrigin PO2, Quantity Q = std::remove_cvref_t<FwdQ>>
  requires PointOriginFor<PO2, Q::quantity_spec> && std::constructible_from<quantity_type, FwdQ> &&
           detail::SameAbsolutePointOriginAs<PO2, PO>
[[nodiscard]] constexpr quantity_point(FwdQ&& q, PO2);

Return Value

Note

The return value should not be discarded.

Parameters

NameDescription
qThe object to move construct from