[#boost-urls-authority_view-compare] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/authority_view.adoc[authority_view]::compare :relfileprefix: ../../../ :mrdocs: Return the result of comparing this with another authority == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/authority_view.hpp#L1232[boost/url/authority_view.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int compare(xref:boost/urls/authority_view.adoc[authority_view] const& other) const noexcept; ---- == Description This function compares two authorities according to Syntax‐Based comparison algorithm. === Exception Safety Throws nothing. === Specification * link:https://datatracker.ietf.org/doc/html/rfc3986#section-6.2.2[6.2.2 Syntax‐Based Normalization (rfc3986)] == Return Value `‐1` if `*this < other`, `0` if `this == other`, and 1 if `this > other`. [.small]#Created with https://www.mrdocs.com[MrDocs]#