[#mp_units-quantity-051]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/quantity-01.adoc[quantity&lt;quantity&lowbar;like&lowbar;traits&lt;Q&gt;&colon;&colon;reference, quantity&lowbar;like&lowbar;traits&lt;Q&gt;::rep&gt;]
:relfileprefix: ../
:mrdocs:

Deduces a `quantity` from an external quantity&hyphen;like type via `quantity&lowbar;like&lowbar;traits`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:mp_units/QuantityLike.adoc[QuantityLike] Q&gt;
xref:mp_units/quantity-01.adoc[quantity&lt;quantity&lowbar;like&lowbar;traits&lt;Q&gt;&colon;&colon;reference, quantity&lowbar;like&lowbar;traits&lt;Q&gt;::rep&gt;](Q) -> xref:mp_units/quantity-01.adoc[quantity&lt;quantity&lowbar;like&lowbar;traits&lt;Q&gt;&colon;&colon;reference, quantity&lowbar;like&lowbar;traits&lt;Q&gt;::rep&gt;];
----

== Template Parameters

[cols="1,4"]
|===
| Name| Description
| *Q*
| the external quantity&hyphen;like type
|===


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