[#mp_units-quantity-01-2conversion-0d] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::operator Q_ :relfileprefix: ../../ :mrdocs: Conversion to `Q_` == Synopsis Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Q_, xref:mp_units/QuantityLike.adoc[QuantityLike] Q = std::remove_cvref_t<Q_>> requires detail::QuantityConstructibleFrom<detail::quantity_like_type<Q>, quantity> [[nodiscard]] constexpr explicit(quantity_like_traits<Q>::explicit_export || !std::convertible_to<quantity<R, Rep>, detail::quantity_like_type<Q>>) operator Q_() const noexcept(noexcept(quantity_like_traits<Q>::from_numerical_value(this‐>numerical_value_is_an_implementation_detail_)) && std::is_nothrow_copy_constructible_v<rep>); ---- == Return Value The object converted to `Q_` [.small]#Created with https://www.mrdocs.com[MrDocs]#