C++ 标准库之algorithm

The header   defines a collection of functions especially designed to be used on ranges of elements.

A range is any sequence of objects that can be accessed through iterators or pointers, such as an array or an instance of some of the  STL containers  . Notice though, that algorithms operate through iterators directly on the values, not affecting in any way the structure of any possible container (it never affects the size or storage allocation of the container).

Functions in

Non-modifying sequence operations  :


Modifying sequence operations  :


Sorting  :


Binary search  (operating on sorted ranges):


Merge  (operating on sorted ranges):


Heap  :


Min/max  :

你可能感兴趣的:(算法,编程语言,algorithm,c++,库,iterator)