Comparison Member Functions
| 215 | |
| 216 | /// Comparison Member Functions |
| 217 | int compare(const basic_string_view& other) const noexcept |
| 218 | { |
| 219 | int ret = traits_type::compare(data_, other.data_, std::min(len_, other.len_)); |
| 220 | if (ret == 0) { |
| 221 | ret = compare_length(len_, other.len_); |
| 222 | } |
| 223 | return ret; |
| 224 | } |
| 225 | |
| 226 | int compare(size_type pos, size_type n, basic_string_view other) const noexcept |
| 227 | { |