Return the result of comparing to another string

Synopsis

Declared in header </boost/url/decode_view.hpp#L532[boost/url/decode_view.hpp,window=blank_]>

int
compare(decode_view other) const noexcept;

Description

The length of the sequences to compare is the smaller of size() and other.size(). The function compares the two strings as if by calling `char_traits <char >::compare(to_string().data(), v.to_string().data(), rlen)`. This means the comparison is performed with percent-decoding applied to the current string.

Return Value

  • int

Parameters

Name Type

other

decode_view