[#mp_units-quantity_point-08-2conversion-08] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity_point-08.adoc[quantity_point]::operator QP_ :relfileprefix: ../../ :mrdocs: Converts this lvalue quantity point to an external quantity‐point‐like type via `quantity_point_like_traits`. == Synopsis Declared in `<mp‐units/framework/quantity_point.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename QP_, xref:mp_units/QuantityPointLike.adoc[QuantityPointLike] QP = std::remove_cvref_t<QP_>> requires (point_origin == quantity_point_like_traits<QP>::point_origin) && std::convertible_to<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_export || !std::convertible_to<quantity_type, quantity<quantity_point_like_traits<QP>::reference, typename quantity_point_like_traits<QP>::rep>>) operator QP_() const & noexcept(/* see-below */); ---- == Exception specification This function is potentially-throwing unless `noexcept(quantity_point_like_traits<QP>::from_numerical_value(this‐>quantity_from_origin_is_an_implementation_detail_.numerical_value_is_an_implementation_detail_)) && std::is_nothrow_copy_constructible_v<rep>`. == Return Value The value produced by `quantity_point_like_traits<QP>::from_numerical_value`. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#