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> &&
           (detail::bounds_exact_in<PO2{}, quantity<Q::reference, typename Q::rep>>()) &&
           (detail::bounds_exact_in<PO, quantity_type>())
[[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