[#mp_units-UnitOf]
= xref:mp_units.adoc[mp&lowbar;units]::UnitOf
:relfileprefix: ../
:mrdocs:

A concept matching all units associated with the provided quantity spec

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;unit&lowbar;concepts&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename U,
    auto QS&gt;
concept UnitOf = MP&lowbar;UNITS&lowbar;ASSOCIATED&lowbar;UNIT&lt;U&gt; &amp;&amp; QuantitySpec&lt;MP&lowbar;UNITS&lowbar;REMOVE&lowbar;CONST(decltype(QS))&gt; &amp;&amp;
  (implicitly&lowbar;convertible(get&lowbar;quantity&lowbar;spec(U&lcub;&rcub;), QS) &verbar;&verbar;
   (unsatisfied&lt;&quot;Unit &apos;&lcub;&rcub;&apos; is associated with quantity of kind &apos;&lcub;&rcub;&apos; which is not convertible to the &apos;&lcub;&rcub;&apos; quantity&quot;&gt;(
     U&lcub;&rcub;, type&lowbar;name(get&lowbar;quantity&lowbar;spec(U&lcub;&rcub;)&period;&lowbar;quantity&lowbar;spec&lowbar;), type&lowbar;name(QS))));
----

== Description

Satisfied by all units for which an associated quantity spec is implicitly convertible to the provided `QS` value&period;


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