Posts tagged find_first

STL Algorithms, part 4

:: algorithms, C++, STL, adjacent_find, count, count_if, find, find_end, find_first

We have seen some examples of usage of the find algorithm, with its variants find_if and find_if_not. In this installment, we are going to see other variants of finding algorithms, plus another algorithm useful when counting items in a sequence, count. Remember that we are still in the realm of non-modifying sequence algorithms (but see the discussion about for_each here).