boost::urls::authority_view::compare :: Boost Libraries Documentation

# boost::urls::authority_view::compare

Return the result of comparing this with another authority

## Synopsis

Declared in `<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`.

## Parameters

Name | Description
other | The authority to compare

Created with MrDocs