The member functions you mention (merge()
, reverse()
, remove()
, remove_if()
, unique()
, sort()
) are provided because they have better complexity than the generic algorithms in the <algorithm>
standard headers.
A member function such as count()
, on the other hand, would not have better complexity than std::distance(std::begin(some_list), std::end(some_list))
.
Also, it may be misinterpreted as the better-complexity version of the std::count
generic algorithm, which does something basically different.