[#boost-urls-operator_eq-011]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::operator&equals;&equals;
:relfileprefix: ../../
:mrdocs:

Equality operators

== Synopses

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/authority_view.hpp#Lundefined[boost&sol;url&sol;authority&lowbar;view&period;hpp]&gt;`

Return true if two addresses are equal


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:boost/urls/operator_eq-0fd.adoc[operator&equals;&equals;](
    xref:boost/urls/ipv6_address.adoc[ipv6&lowbar;address] const& a1,
    xref:boost/urls/ipv6_address.adoc[ipv6&lowbar;address] const& a2) noexcept;
----

[.small]#xref:boost/urls/operator_eq-0fd.adoc[_» more&period;&period;&period;_]#

Return true if two addresses are equal


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:boost/urls/operator_eq-0f2.adoc[operator&equals;&equals;](
    xref:boost/urls/ipv4_address.adoc[ipv4&lowbar;address] const& a1,
    xref:boost/urls/ipv4_address.adoc[ipv4&lowbar;address] const& a2) noexcept;
----

[.small]#xref:boost/urls/operator_eq-0f2.adoc[_» more&period;&period;&period;_]#

Compare two decode views for equality


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
bool
xref:boost/urls/operator_eq-02.adoc[operator&equals;&equals;](
    S const& lhs,
    xref:boost/urls/decode_view.adoc[decode&lowbar;view] const& rhs) noexcept;
----

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

Compare two decode views for equality


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
bool
xref:boost/urls/operator_eq-090.adoc[operator&equals;&equals;](
    xref:boost/urls/decode_view.adoc[decode&lowbar;view] const& lhs,
    S const& rhs) noexcept;
----

[.small]#xref:boost/urls/operator_eq-090.adoc[_» more&period;&period;&period;_]#

Compare two decode views for equality


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
bool
xref:boost/urls/operator_eq-091.adoc[operator&equals;&equals;](
    xref:boost/urls/decode_view.adoc[decode&lowbar;view] const& lhs,
    xref:boost/urls/decode_view.adoc[decode&lowbar;view] const& rhs) noexcept;
----

[.small]#xref:boost/urls/operator_eq-091.adoc[_» more&period;&period;&period;_]#

Return the result of comparing two URLs


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:boost/urls/operator_eq-013.adoc[operator&equals;&equals;](
    xref:boost/urls/url_view_base.adoc[url&lowbar;view&lowbar;base] const& u0,
    xref:boost/urls/url_view_base.adoc[url&lowbar;view&lowbar;base] const& u1) noexcept;
----

[.small]#xref:boost/urls/operator_eq-013.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
operator&equals;&equals;(
    xref:boost/urls/params_encoded_base/iterator.adoc[iterator] const& it0,
    xref:boost/urls/params_encoded_base/iterator.adoc[iterator] const& it1) noexcept;
----

[.small]#[_» more&period;&period;&period;_]#

Return the result of comparing two authorities&period; The authorities are compared component by component as if they were first normalized&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:boost/urls/operator_eq-092.adoc[operator&equals;&equals;](
    xref:boost/urls/authority_view.adoc[authority&lowbar;view] const& a0,
    xref:boost/urls/authority_view.adoc[authority&lowbar;view] const& a1) noexcept;
----

[.small]#xref:boost/urls/operator_eq-092.adoc[_» more&period;&period;&period;_]#

== Return Value

* `true` if the addresses are equal
* `true` if the addresses are equal, otherwise `false`&period;
* `true` if decoded `lhs` is equal to the decoded `rhs`
* `true` if `u0 &equals;&equals; u1`
* `true` if `a0 &equals;&equals; a1`, otherwise `false`

== Parameters

[cols="1,4"]
|===
|Name|Description

| *a1*
| The first address to compare&period;
| *a2*
| The second address to compare&period;
| *lhs*
| The left&hyphen;hand&hyphen;side decode view to compare
| *rhs*
| The right&hyphen;hand&hyphen;side decode view to compare
| *u0*
| The first url to compare
| *u1*
| The second url to compare
| *a0*
| The first authority to compare
|===


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