21st Non-variable easy algorithm
non-modifying Sequence Operations
21.0 advance, distance
to understand the template, first look at these two iterator action functions
21.1 Container -by-element for_each
For_each Apply function to range (template function)
21.2 Find container elements find
find find value in range (function template)
21.3 Items Find container elements find_if
find_if find element in range (function template)
21.4 Neighbor Lookup container element adjacent_find
adjacent_find Find equal adjacent elements in range (function template)
21.5 Range Lookup container element find_first_of
find_first_of find element from set in range (function template)
21.6 counts the number of container elements equal to a value count
count count appearances of value in range (function template)
21.7 Statistics container element number count_if
count_if Return Number of elements in range satisfying condition (function template)
21.8 element mismatch lookup mismatch
mismatch Return first position where ranges differ (function template)
21.9 elements equal judgment equal
equal Test whether the elements in the ranges is equal (function template)
21.10 Sub-sequence search
Search Find subsequence in range (function template)
21.11 Repeating element sub-sequence search Search_n
search_n Find Succession of equal values in range (function template)
21.12 last sub-sequence search Find_end
Find_end Find last subsequence in range (function template)
All the content here, has been folded:
21st Non-variable easy algorithm
Non-modifying sequence Operations
21.0 advance, distance
To understand the template, first look at these two iterator action functions
21.1 container-by-element for_each
For_each Apply function to range (template function)
21.2 Find container elements find
Find find value in range (function template)
21.3 items Find container elements find_if
Find_if Find element in range (function template)
21.4 Neighbor Lookup Container element adjacent_find
Adjacent_find find equal adjacent elements in range (function template)
21.5 Range Lookup Container element find_first_of
Find_first_of Find element from set in range (function template)
21.6 counts the number of container elements equal to a value count
Count count appearances of value in range (function template)
21.7 statistics container element number count_if
count_if Return number of elements in range satisfying condition (function template)
21.8 element mismatch lookup mismatch
Mismatch Return first position where ranges differ (function template)
21.9 Elements equal judgment equal
Equal Test whether the elements in the ranges is equal (function template)
21.10 Sub-sequence search
Search Find subsequence in range (function template)
21.11 repeating element sub-sequence search Search_n
Search_n Find succession of equal values in range (function template)
21.12 last sub-sequence search Find_end
Find_end Find last subsequence in range (function template)
000top000
21st Non-variable easy algorithm