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

Equality operators

== Synopses

Declared in `&lt;mp&hyphen;units&sol;ext&sol;fixed&lowbar;string&period;h&gt;`

Equality operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;std::size&lowbar;t N2&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
bool
xref:mp_units/operator_eq-03d.adoc[operator&equals;&equals;](
    xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string] const& lhs,
    CharT const(& rhs)[]);
----

[.small]#xref:mp_units/operator_eq-03d.adoc[_» more&period;&period;&period;_]#

Equality operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;std::size&lowbar;t N2&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
bool
xref:mp_units/operator_eq-032.adoc[operator&equals;&equals;](
    xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string] const& lhs,
    xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string&lt;CharT, N2&gt;] const& rhs);
----

[.small]#xref:mp_units/operator_eq-032.adoc[_» more&period;&period;&period;_]#

Equality operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    std::size&lowbar;t N2,
    std::size&lowbar;t M2&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
bool
xref:mp_units/operator_eq-0a.adoc[operator&equals;&equals;](
    xref:mp_units/symbol_text-032.adoc[symbol&lowbar;text] const& lhs,
    xref:mp_units/symbol_text-032.adoc[symbol&lowbar;text&lt;N2, M2&gt;] const& rhs) noexcept;
----

[.small]#xref:mp_units/operator_eq-0a.adoc[_» more&period;&period;&period;_]#

Equality operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:mp_units/AssociatedUnit.adoc[AssociatedUnit] U2&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
bool
xref:mp_units/operator_eq-02.adoc[operator&equals;&equals;](
    xref:mp_units/reference.adoc[reference] lhs,
    U2 u2);
----

[.small]#xref:mp_units/operator_eq-02.adoc[_» more&period;&period;&period;_]#

Equality operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Q2,
    typename U2&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
bool
xref:mp_units/operator_eq-07.adoc[operator&equals;&equals;](
    xref:mp_units/reference.adoc[reference] lhs,
    xref:mp_units/reference.adoc[reference&lt;Q2, U2&gt;] rhs);
----

[.small]#xref:mp_units/operator_eq-07.adoc[_» more&period;&period;&period;_]#

Equality operator


[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
xref:mp_units/operator_eq-010.adoc[operator&equals;&equals;](
    Q const& lhs,
    Value const& rhs);
----

[.small]#xref:mp_units/operator_eq-010.adoc[_» more&period;&period;&period;_]#

Equality operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    std::derived&lowbar;from&lt;quantity&gt; Q,
    auto R2,
    typename Rep2&gt;
requires requires &lcub; typename std&colon;&colon;common&lowbar;type&lowbar;t&lt;quantity, quantity&lt;R2, Rep2&gt;&gt;&semi; &rcub; &amp;&amp;
             std&colon;&colon;equality&lowbar;comparable&lt;typename std&colon;&colon;common&lowbar;type&lowbar;t&lt;quantity, quantity&lt;R2, Rep2&gt;&gt;&colon;&colon;rep&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
bool
xref:mp_units/operator_eq-09.adoc[operator&equals;&equals;](
    Q const& lhs,
    xref:mp_units/quantity-01.adoc[quantity&lt;R2, Rep2&gt;] const& rhs);
----

[.small]#xref:mp_units/operator_eq-09.adoc[_» more&period;&period;&period;_]#

Equality operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    std::derived&lowbar;from&lt;quantity&lowbar;point&gt; QP,
    xref:mp_units/QuantityPointOf.adoc[QuantityPointOf&lt;absolute&lowbar;point&lowbar;origin&gt;] QP2&gt;
requires std&colon;&colon;equality&lowbar;comparable&lowbar;with&lt;quantity&lowbar;type, typename QP2&colon;&colon;quantity&lowbar;type&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
bool
xref:mp_units/operator_eq-011.adoc[operator&equals;&equals;](
    QP const& lhs,
    QP2 const& rhs);
----

[.small]#xref:mp_units/operator_eq-011.adoc[_» more&period;&period;&period;_]#


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