std::experimental::basic_string_view<CharT,Traits>::compare
Min standard notice:
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
v: view to compares: pointer to the character string to compare tocount1: number of characters of this view to comparepos1: position of the first character in this view to comparecount2: number of characters of the given view to comparepos2: position of the first character of the given view to compare
# 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.