Daily bit(e) of C++ | Lexicographical comparison with containers
Daily bit(e) of C++ #237, The lexicographical comparison support for standard library containers.
Standard C++ containers provide lexicographical comparison through the standard set of comparison operators (before C++20) and the three-way comparison operator (since C++20).
The support covers std::array, std::vector, std::deque, std::(forward_)list, std::string (and variants), std::(multi)set, std::(multi)map, std::stack and std::queue.