https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93059
--- Comment #38 from Jonathan Wakely <redi at gcc dot gnu.org> --- We could also use memcmp for std::equal when it's using std::equal_to<> or std::equal_to<_ValueType1> or std::equal_to<_ValueType2>, and for std::lexicographical_compare when it's using std::less<> or std::less<_ValueType1> or std::less<_ValueType2> (as long as the existing conditions are also met). Currently we only use memcmp when those algos are used without a comparison function.