boost::urls::operator==

Equality operators

Synopses

Return true if two addresses are equal

bool
operator==(
    ipv4_address const& a1,
    ipv4_address const& a2) noexcept;

Return true if two addresses are equal

bool
operator==(
    ipv6_address const& a1,
    ipv6_address const& a2) noexcept;

Return the result of comparing two authorities The authorities are compared component by component as if they were first normalized.

bool
operator==(
    authority_view const& a0,
    authority_view const& a1) noexcept;

Return the result of comparing two URLs

bool
operator==(
    url_view_base const& u0,
    url_view_base const& u1) noexcept;

Compare two decode views for equality

constexpr
bool
operator==(
    decode_view const& lhs,
    decode_view const& rhs) noexcept;

Compare two decode views for equality

template<std::convertible_to<core::string_view> S>
constexpr
bool
operator==(
    decode_view const& lhs,
    S const& rhs) noexcept;

Compare two decode views for equality

template<std::convertible_to<core::string_view> S>
constexpr
bool
operator==(
    S const& lhs,
    decode_view const& rhs) noexcept;

Return Value

  • true if the addresses are equal, otherwise false.

  • true if the addresses are equal

  • true if a0 == a1, otherwise false

  • true if u0 == u1

  • true if decoded lhs is equal to the decoded rhs

Parameters

Name

Description

a1

The first address to compare.

a2

The second address to compare.

a0

The first authority to compare

u0

The first url to compare

u1

The second url to compare

lhs

The left‐hand‐side decode view to compare

rhs

The right‐hand‐side decode view to compare

Created with MrDocs