mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-18 10:06:54 +01:00
3b49e3463b
git-svn-id: https://cppannotations.svn.sourceforge.net/svnroot/cppannotations/trunk@367 f6dd340e-d3f9-0310-b409-bdd246841980
23 lines
1 KiB
Text
23 lines
1 KiB
Text
hi(min_element)
|
|
itemization(
|
|
it() Header file: tt(<algorithm>)
|
|
it() Function prototypes:
|
|
itemization(
|
|
itt(ForwardIterator min_element(ForwardIterator first,
|
|
ForwardIterator last);)
|
|
itt(ForwardIterator min_element+OPENPARForwardIterator first,
|
|
ForwardIterator last,)linebreak()tt(Comparator comp+CLOSEPAR;)
|
|
)
|
|
it() Description:
|
|
itemization(
|
|
it() The first prototype: an iterator pointing to the smallest
|
|
element in the range implied by rangett(first, last) is returned using
|
|
tt(operator<) of the data type to which the iterators point.
|
|
it() The second prototype: rather than using tt(operator<), the
|
|
binary predicate tt(comp) is used to make the comparisons between the elements
|
|
implied by the iterator range rangett(first, last). The element for which
|
|
tt(comp) returns tt(false) most often is returned.
|
|
)
|
|
it() Example:
|
|
verbinclude(generic/examples/minelement.cc)
|
|
)
|