mp_units::quantity_point::quantity_point

Constructs a quantity point from a quantity measured from another point origin that shares this one's absolute point origin.

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

Return Value

NOTE

The return value should not be discarded.

Parameters

NameDescription
qthe quantity giving the offset from po
pothe point origin the quantity is measured from