Boost.URL
Report an Issue

Boost.URL

    • Quick Look
    • URLs
      • Parsing
      • Containers
      • Segments
      • Params
      • Normalization
      • String Token
      • Percent Encoding
      • Formatting
    • Customization
      • Parse Rules
      • Character Sets
      • Compound Rules
      • Ranges
      • RFC 3986
    • Examples
      • QR Code
      • Finicky
      • mailto URLs
      • Magnet Link
      • File Router
      • Router
      • Sanitizing URLs
    • Reference
      • Index
      • Concepts
        • CharSet
        • Rule
        • StringToken
      • Help Card
Boost.URL default
  • Boost.URL
    • default
  • Boost.URL
  • boost::urls::authority_view::compare

boost::urls::authority_view::compare

Return the result of comparing this with another authority

Synopsis

Declared in header <boost/url/authority_view.hpp>

int
compare(authority_view const& other) const noexcept;

Description

This function compares two authorities according to Syntax-Based comparison algorithm.

Exception Safety

Throws nothing.

Specification

  • 6.2.2 Syntax-Based Normalization (rfc3986)

Return Value

-1 if *this < other, 0 if this == other, and 1 if this > other.

This page was built using the Antora default UI.

The source code for this UI is licensed under the terms of the MPL-2.0 license.

https://github.com/cppalliance/site-docs