Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
basic_static_string::compare (8 of 9 overloads)

Compare the string with another.

Synopsis
template<
    typename T,
    [role red error.class-detail-template.1][role red error.class-detail-template.2] = detail::enable_if_viewable_t<T, CharT, Traits>>
BOOST_STATIC_STRING_CPP14_CONSTEXPR int
compare(
    size_type pos1,
    size_type count1,
    const T& t) const;
Description

Compares a [pos1, pos1+count1) substring of this string to t after converting it to string_view_type. If count1 > size() - pos1 the substring is [pos1, size()). This function participates in overload resolution if T is convertible to string_view_type and T is not convertible to const_pointer.


PrevUpHomeNext