:relfileprefix: ../../../
[#89BE7FC1F88469D29530033CA85B3BED4AAD41FB]

= Function authority_view::compare

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


== Synopsis

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

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

== Description

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

=== 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*
| ``

|===



