Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
basic_static_string::compare (6 of 9 overloads)

Compare the string with another.

Synopsis
BOOST_STATIC_STRING_CPP14_CONSTEXPR int
compare(
    size_type pos1,
    size_type count1,
    const_pointer s,
    size_type count2) const;
Description

Compares a [pos1, pos1+count1) substring of this string to the characters in the range [s, s + count2). If count1 > size() - pos1 the substring is [pos1, size()).


PrevUpHomeNext