Skip to content

mp_units::quantity_point::quantity_point

Construct from QP

Synopsis

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

template<QuantityPointLike QP>
  requires(quantity_point_like_traits<QP>::point_origin == point_origin) &&
          std::constructible_from<quantity_type, quantity<quantity_point_like_traits<QP>::reference,
                                                          typename quantity_point_like_traits<QP>::rep>>
[[nodiscard]] constexpr explicit(
  quantity_point_like_traits<QP>::explicit_import ||
  !std::convertible_to<
    quantity<quantity_point_like_traits<QP>::reference, typename quantity_point_like_traits<QP>::rep>, quantity_type>)
  quantity_point(QP const& qp);

Return Value

Note

The return value should not be discarded.

Parameters

NameDescription
qpThe object to copy construct from