cpp-2013 #9 STL Algorithms Part 1

831 views

Published on

  • Be the first to comment

  • Be the first to like this

cpp-2013 #9 STL Algorithms Part 1

  1. 1. STL algorithms Part 1
  2. 2. Iterators
  3. 3. Iterators• Why we need to have iterators• Features• iterator• reverse_iterator• const_iterator• What iterator type better to use• base() member
  4. 4. Functors
  5. 5. Functor• What is functor? Function Function objects Handwritten Lambdas
  6. 6. Functor• operator()• unary_function, binary_function
  7. 7. Algorithms
  8. 8. Algorithms• Why it’s better to use STL algorithms• Global STL algorithms overview
  9. 9. Non-modifying algorithms
  10. 10. for_each• Overview• Examples
  11. 11. count, count_if• Overview• Examples
  12. 12. find, find_if• Overview• Examples
  13. 13. equal• Overview• Examples
  14. 14. all_of, any_of, none_of• Overview• Examples
  15. 15. Questions?

×