:relfileprefix: ../../../
[#A7ED8BD9AB17506A44EDE7B2D68B91BC55CA0F58]

= Function url_view_base::compare

pass:v,q[Return the result of comparing this with another url]


== Synopsis

Declared in header `</boost/url/url_view_base.hpp#L2359[boost/url/url_view_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
int
compare(const xref:boost/urls/url_view_base.adoc[url_view_base]& other) const noexcept;
----

== Description

pass:v,q[This function compares two URLs] pass:v,q[according to Syntax-Based comparison]
pass:v,q[algorithm.]

=== Complexity
pass:v,q[Linear in `min( u0.size(), u1.size() )`]

=== Exception Safety
pass:v,q[Throws nothing.]

=== Specification

* link:https://datatracker.ietf.org/doc/html/rfc3986#section-6.2.2[6.2.2 Syntax-Based Normalization (rfc3986)]



== Return Value

* `int` 


== Parameters

|===
| Name | Type 

| *other*
| ``

|===



