Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext
url_view_base::compare

Return the result of comparing this with another url.

Synopsis
int
compare(
    url_view_base const& other) const;
Description

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

Complexity

Linear in min( u0.size(), u1.size() )

Exception Safety

Throws nothing.

Specification
Return Value

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


PrevUpHomeNext