[#mp_units-quantity_point-08-2conversion-01]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/quantity_point-08.adoc[quantity&lowbar;point]::operator QP&lowbar;
:relfileprefix: ../../
:mrdocs:

Conversion to `QP&lowbar;`

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;quantity&lowbar;point&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename QP&lowbar;,
    xref:mp_units/QuantityPointLike.adoc[QuantityPointLike] QP = std::remove&lowbar;cvref&lowbar;t&lt;QP&lowbar;&gt;&gt;
requires (point&lowbar;origin &equals;&equals; quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;&colon;&colon;point&lowbar;origin) &amp;&amp;
            std&colon;&colon;convertible&lowbar;to&lt;quantity&lowbar;type, quantity&lt;quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;&colon;&colon;reference,
                                                        typename quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;&colon;&colon;rep&gt;&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
explicit(quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;&colon;&colon;explicit&lowbar;export &verbar;&verbar; !std&colon;&colon;convertible&lowbar;to&lt;quantity&lowbar;type, quantity&lt;quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;&colon;&colon;reference, typename quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;&colon;&colon;rep&gt;&gt;)
operator QP&lowbar;() const &amp; noexcept(noexcept(quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;&colon;&colon;from&lowbar;numerical&lowbar;value(this&hyphen;&gt;quantity&lowbar;from&lowbar;origin&lowbar;is&lowbar;an&lowbar;implementation&lowbar;detail&lowbar;&period;numerical&lowbar;value&lowbar;is&lowbar;an&lowbar;implementation&lowbar;detail&lowbar;)) &amp;&amp; std&colon;&colon;is&lowbar;nothrow&lowbar;copy&lowbar;constructible&lowbar;v&lt;rep&gt;);
----

== Return Value

The object converted to `QP&lowbar;`

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

[.small]#Created with https://www.mrdocs.com[MrDocs]#
