Notes compiled from 105 STL Algorithms in Less Than an Hour - Jonathan Boccara [ACCU 2018]
-
Searching all:
all_of() any_of() none_of()
-
Search single element:
-
Not sorted:
find() adjacent_find()
-
Sorted:
equal_range() lower_bound() upper_bound() binary_search()
-
-
Search a range of elements:
search() find_end() find_first_of()
-
Search a relative value:
iterator max_element() iterator min_element() std::pair<iterator, iterator> minmax_element()
std::fill(first, last, value)
std::generate(first, last, f)