[#boost-urls-operator_gt-09]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::operator&gt;
:relfileprefix: ../../
:mrdocs:


Return the result of comparing two URLs

== Synopsis


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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
operator&gt;(
    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;
----

== Description


The URLs are compared component by        component as if they were first        normalized&period;


=== Example

[,cpp]
----
url_view u0( "http://www.b.com/index.htm" );
url_view u1( "http://www.a.com/index.htm" );
assert( u0 > u1 );
----

=== Effects

[,cpp]
----
url a(u0);
a.normalize();
url b(u1);
b.normalize();
return a.buffer() > b.buffer();
----

=== Complexity

Linear in `min( u0&period;size(), u1&period;size() )`


=== Exception Safety

Throws nothing


=== Specification

* link:https://datatracker.ietf.org/doc/html/rfc3986#section-6.2.2[6&period;2&period;2 Syntax&hyphen;Based Normalization (rfc3986)]

Return the result of comparing two URLs

The URLs are compared component by        component as if they were first        normalized&period;


=== Example

[,cpp]
----
url_view u0( "http://www.b.com/index.htm" );
url_view u1( "http://www.a.com/index.htm" );
assert( u0 > u1 );
----

=== Effects

[,cpp]
----
url a(u0);
a.normalize();
url b(u1);
b.normalize();
return a.buffer() > b.buffer();
----

=== Complexity

Linear in `min( u0&period;size(), u1&period;size() )`


=== Exception Safety

Throws nothing


=== Specification

* link:https://datatracker.ietf.org/doc/html/rfc3986#section-6.2.2[6&period;2&period;2 Syntax&hyphen;Based Normalization (rfc3986)]



== Return Value


`true` if `u0 &gt; u1`





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