:relfileprefix: ../../ [#boost-urls-operator_eq-01] == xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::operator== Return the result of comparing two URLs === Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- bool operator==( xref:boost/urls/url_view_base.adoc[url_view_base] const& u0, xref:boost/urls/url_view_base.adoc[url_view_base] const& u1) noexcept; ---- === Description The URLs are compared component by component as if they were first normalized. [,cpp] ---- url_view u0( "http://www.a.com/index.htm" ); url_view u1( "http://www.a.com/index.htm" ); assert( u0 == u1 ); ---- [,cpp] ---- url a(u0); a.normalize(); url b(u1); b.normalize(); return a.buffer() == b.buffer(); ---- === Linear in `min( u0.size(), u1.size() )` === Throws nothing * link:https://datatracker.ietf.org/doc/html/rfc3986#section-6.2.2[6.2.2 Syntax-Based Normalization (rfc3986)] === Return Value `true` if `u0 == u1`