[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppAlgorithm
Prefer algorithm calls over hand-written loops [1,2].
List from [1] (chapter 18.2):
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppAlgorithm
(C++) Algorithm
Can be found in the header file algorithm.Prefer algorithm calls over hand-written loops [1,2].
List from [1] (chapter 18.2):
- ?std::adjacent_find
- ?std::binary_search
- std::copy
- ?std::copy_backward
- ?std::count
- ?std::count_if
- ?std::equal
- ?std::equal_range
- ?std::fill
- ?std::find
- ?std::find_end
- ?find_first_of
- ?std::find_if
- std::for_each
- ?std::generate
- ?std::generate_n
- ?std::includes
- ?std::inplace_merge
- ?std::iter_swap
- ?std::lexicographical_compare
- ?std::lower_bound
- ?std::make_heap
- std::max
- ?std::max_element
- ?std::median
- ?std::merge
- std::min
- ?std::min_element
- ?std::mismatch
- ?std::next_permutation
- ?std::nth_element
- ?std::partial_sort
- ?std::partition
- ?std::pop_heap
- ?std::prev_permutation
- ?std::push_heap
- std::random_shuffle
- std::remove
- ?std::remove_copy
- ?std::remove_copy_if
- ?std::remove_if
- std::replace
- ?std::replace_copy
- ?std::replace_copy_if
- ?std::replace_if
- ?std::reverse
- ?std::reverse_copy
- ?std::rotate
- ?std::rotate_copy
- ?std::rotate_cycle
- ?std::stable_partition
- ?std::search
- ?std::search_n
- ?std::set_difference
- ?std::set_intersection
- ?std::set_symmetric_difference
- ?std::set_union
- std::sort
- ?std::sort_heap
- ?std::stable_sort
- ?std::stable_sort_copy
- std::swap
- ?std::swap_ranges
- std::transform
- ?std::unique
- ?std::unique_copy
- ?std::upper_bound
References
- 1) Bjarne Stroustrup. The C++ Programming Language (3rd edition).ISBN: 0-201-88954-4. Chapter 18.12.1: 'Prefer algorithms to loops]].
- 2) Scott Meyers. Effective STL. ISBN: 0-201-74962-9. Item 43: 'Prefer algorithm calls over hand-written loops'
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
