The algorithms library defines functions for a variety of purposes (e.g. searching, sorting, counting, manipulating) that operate on ranges of elements. Note that a range is defined as [first, last) where last refers to the element past the last element to inspect or modify.
Non-modifying sequence operations Defined in header <algorithm> all_ofany_ofnone_of (C++11)(C++11)(C++11) checks if a predicate is true for all, any or none of the elements in a range (function templat