C++ C++ STL STL Algorithm

Introduction

  1. C++ accumulate() on list
  2. C++ back_inserter()
  3. C++ back_inserter() on list
  4. C++ copy()
  5. C++ copy() deque
  6. C++ copy() first 3 elements
  7. C++ copy() on file stream
  8. C++ copy() on list


  9. C++ copy() on vector
  10. C++ count() the number of objects with a specified value
  11. C++ find()
  12. C++ find() Finds the first object with a specified value
  13. C++ find() on list
  14. C++ find() returns a list iterator
  15. C++ find() Search value in vector
  16. C++ find_if() Searches array of strings for first name and custom function


  17. C++ for_each display person objects with custom function
  18. C++ for_each() output array elements
  19. C++ max_element()
  20. C++ merge() Merges two containers into a third
  21. C++ min_element()
  22. C++ search() searches one container for a sequence in another container
  23. C++ sort with comparator greater
  24. C++ sort()
  25. C++ sort() on vector
  26. C++ sort() Sorts an array of integers
  27. C++ sort() Sorts array of doubles in backwards order, uses greater<>() function
  28. C++ sort() Sorts array of strings with user-written comparison function
  29. C++ sort() Sorts Arrays and Vectors
  30. C++ sort() Sorts float array
  31. C++ sort() Sorts pair
  32. C++ sort() Sorts person objects stored by pointer
  33. C++ sort() Sorts person objects with custom comparison function
  34. C++ sort() Sorts vector
  35. C++ sort() with comparison function
  36. C++ sort() with Lambda Expressions
  37. C++ sort() with Lambda Expressions Throwing an Exception
  38. C++ transform() to change array of inches values to cm
  39. C++ transform() on vector
  40. C++ transform() with Lambda Expressions