# Comparison and Equality

> StringZilla for C++

`#include <stringzilla/stringzilla.hpp>`

## less

Helper function-like object to order string-view convertible objects with StringZilla.

```cpp
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: std::less: [https://en.cppreference.com/w/cpp/utility/functional/less](https://en.cppreference.com/w/cpp/utility/functional/less)

## equal_to

Helper function-like object comparing string-view convertible objects with StringZilla.

```cpp
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: std::equal_to: [https://en.cppreference.com/w/cpp/utility/functional/equal_to](https://en.cppreference.com/w/cpp/utility/functional/equal_to)

