C++ · Comparison and Equality

Comparison and Equality

#include <stringzilla/stringzilla.hpp> 6.0.0-rc.1 · 91a27bdd

API

Types

lessHelper function-like object to order string-view convertible objects with StringZilla.
stringzilla.hpp:4693 ↗
struct less

Similar to std::less<std::string_view>, but doesn't require including the heavy <functional> header. Can be used to combine STL classes with StringZilla logic, like: std::map<std::string, int, sz::less>.

See also

equal_toHelper function-like object comparing string-view convertible objects with StringZilla.
stringzilla.hpp:4709 ↗
struct equal_to

Similar to std::equal_to<std::string_view>, but doesn't require including the heavy <functional> header. Can be used to combine STL classes with StringZilla logic, like: std::unordered_map<std::string, int, sz::hash, sz::equal_to>.

See also