Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

All C++ containers (except for unordered containers) directly support lexicographical comparison (three-way since C++20) of their content against another instance of the same container. With the std::lexicographical_compare and std::lexicographical_compare_three_way (C++20), we can compare any input ranges. std::lexicographical_compare supports both a C++17 paralel and C++20 range version. Compiler Explorer link: https://lnkd.in/ekKy8MyR #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

To view or add a comment, sign in

Explore content categories