Difference between revisions of "cpp/algorithm"
From cppreference.com
< cpp
m (Text replace - "/sidebar" to "/navbar") |
(add short description) |
||
Line 1: | Line 1: | ||
{{title | Algorithms library}} | {{title | Algorithms library}} | ||
{{cpp/algorithm/navbar}} | {{cpp/algorithm/navbar}} | ||
+ | |||
+ | The algorithm library defines a number of functions designed to be used on ranges (sequences) of elements. The algorithms support arbitrary data structures used to implement element ranges. | ||
+ | |||
+ | Note, that most of the algorithms in the library accept a range as {{tt|[first, last)}}. That is, {{tt|last}} refers to the element past the last element to inspect or modify. | ||
{{dcl list begin}} | {{dcl list begin}} |
Revision as of 05:03, 7 August 2012
The algorithm library defines a number of functions designed to be used on ranges (sequences) of elements. The algorithms support arbitrary data structures used to implement element ranges.
Note, that most of the algorithms in the library accept a range as [first, last)
. That is, last
refers to the element past the last element to inspect or modify.