For Efficiency, Favor Specialized Over Generic Member Algorithms
The algorithms in the standard C++ library are generic and, as such, can be inefficient (or unavailable) with certain containers.For example, the std::swap algorithm is generic but lists define an