KEMBAR78
cpp-2013 #9 STL Algorithms Part 1 | PPTX
STL algorithms
    Part 1
Iterators
Iterators
•   Why we need to have iterators
•   Features
•   iterator
•   reverse_iterator
•   const_iterator
•   What iterator type better to use
•   base() member
Functors
Functor
• What is functor?



          Function             Function objects



                        Handwritten               Lambdas
Functor
• operator()
• unary_function, binary_function
Algorithms
Algorithms
• Why it’s better to use STL algorithms
• Global STL algorithms overview
Non-modifying
 algorithms
for_each
• Overview
• Examples
count, count_if
• Overview
• Examples
find, find_if
• Overview
• Examples
equal
• Overview
• Examples
all_of, any_of, none_of
• Overview
• Examples
Questions?

cpp-2013 #9 STL Algorithms Part 1