| 25 | } |
| 26 | |
| 27 | bool StringView::operator<(const StringView &other) const { |
| 28 | size_t common_size = std::min(m_size, other.m_size); |
| 29 | int res = memcmp(m_data, other.m_data, common_size); |
| 30 | if (res != 0) |
| 31 | return res < 0; |
| 32 | return m_size < other.m_size; |
| 33 | } |
| 34 | } // namespace common |