mardi 29 septembre 2015

Why the `std::equal_to` is useful?

The C++ standard stbrary provides std::equal_to function. This function object invokes operator== on type T by default.

What's the benefit of using std::equal_to in a C++ code? Could you provide an example where the std::equal_to is very useful?

Aucun commentaire:

Enregistrer un commentaire