[#mp_units-operator_eq-037]
= xref:mp_units.adoc[mp&lowbar;units]::operator&equals;&equals;
:relfileprefix: ../
:mrdocs:

Equality operator

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    std::derived&lowbar;from&lt;quantity&gt; Q,
    xref:mp_units/RepresentationOf.adoc[RepresentationOf&lt;quantity&lowbar;spec&gt;] Value&gt;
requires detail&colon;&colon;DimensionlessOne&lt;Q&colon;&colon;reference&gt; &amp;&amp; std&colon;&colon;equality&lowbar;comparable&lowbar;with&lt;rep, Value&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
bool
operator&equals;&equals;(
    Q const& lhs,
    Value const& rhs);
----

== Return Value

`true` if the objects are equal, `false` otherwise

== Parameters

[cols=2]
|===
| Name
| Description
| *lhs*
| The left operand
| *rhs*
| The right operand
|===


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