Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

basic_static_string::compare

Compare the string with another.

template<
    std::size_t M>
BOOST_STATIC_STRING_CPP14_CONSTEXPR int
compare(
    const basic_static_string< M, CharT, Traits >& s) const;
  » more...

template<
    std::size_t M>
BOOST_STATIC_STRING_CPP14_CONSTEXPR int
compare(
    size_type pos1,
    size_type count1,
    const basic_static_string< M, CharT, Traits >& s) const;
  » more...

template<
    std::size_t M>
BOOST_STATIC_STRING_CPP14_CONSTEXPR int
compare(
    size_type pos1,
    size_type count1,
    const basic_static_string< M, CharT, Traits >& s,
    size_type pos2,
    size_type count2 = npos) const;
  » more...

BOOST_STATIC_STRING_CPP14_CONSTEXPR int
compare(
    const_pointer s) const;
  » more...

BOOST_STATIC_STRING_CPP14_CONSTEXPR int
compare(
    size_type pos1,
    size_type count1,
    const_pointer s) const;
  » more...

BOOST_STATIC_STRING_CPP14_CONSTEXPR int
compare(
    size_type pos1,
    size_type count1,
    const_pointer s,
    size_type count2) const;
  » more...

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(
    const T& t) const;
  » more...

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;
  » more...

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,
    size_type pos2,
    size_type count2 = npos) const;
  » more...

PrevUpHomeNext