MCPcopy Create free account
hub / github.com/bcndev/bytecoin / operator<

Method operator<

src/common/StringView.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27bool 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

Callers

nothing calls this directly

Calls 1

minFunction · 0.85

Tested by

no test coverage detected