mp_units::quantity_point::quantity_point¶
Construct from QP
Synopsis¶
Declared in <mp-units/framework/quantity_point.h>
template<QuantityPoint QP>
requires(!QuantityPointOf<QP, absolute_point_origin>) && requires(const QP& src) {
{ src.point_for(point_origin) } -> QuantityPointOf<point_origin>;
quantity_type{src.point_for(point_origin) - point_origin};
}
[[nodiscard]] constexpr explicit quantity_point(QP const& qp);
Return Value¶
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| qp | The object to copy construct from |