Daily bit(e) of C++ | std::equal, std::is_permutation
Daily bit(e) of C++ #361, The two algorithms for comparing the content of two containers for equality: std::equal and std::is_permutation.
Containers of the same type can be easily compared using comparison operators.
When we need to compare the content of containers of different types, we can use the std::equal and std::is_permutation algorithms.