std::experimental::basic_string_view<CharT,Traits>::compare

Compares two character sequences.

# Declarations

constexpr int compare(basic_string_view v) const noexcept;

(library fundamentals TS)

constexpr int compare(size_type pos1, size_type count1,
basic_string_view v) const

(library fundamentals TS)

constexpr int compare(size_type pos1, size_type count1, basic_string_view v,
size_type pos2, size_type count2) const;

(library fundamentals TS)

constexpr int compare(const CharT* s) const;

(library fundamentals TS)

constexpr int compare(size_type pos1, size_type count1,
const CharT* s) const;

(library fundamentals TS)

constexpr int compare(size_type pos1, size_type count1,
const CharT* s, size_type count2) const;

(library fundamentals TS)

# Parameters

# Return value

negative value if this view is less than the other character sequence, zero if the both character sequences are equal, positive value if this view is greater than the other character sequence.

# See also