[#mp_units-quantity_spec-0a6-operator_subs]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/quantity_spec-0a6.adoc[quantity&lowbar;spec&lt;QS, Args&period;&period;&period;&gt;]::operator&lsqb;&rsqb;
:relfileprefix: ../../
:mrdocs:

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Self,
    xref:mp_units/UnitOf.adoc[UnitOf&lt;Self&lcub;&rcub;&gt;] U&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
xref:mp_units/Reference.adoc[Reference] auto
operator&lsqb;&rsqb;(this 
    Self,
    U);
----

== Return 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]#
