cppannotations/yo/generic/minelement.yo
Frank B. Brokken 3b49e3463b WIP
git-svn-id: https://cppannotations.svn.sourceforge.net/svnroot/cppannotations/trunk@367 f6dd340e-d3f9-0310-b409-bdd246841980
2009-12-31 14:26:46 +00:00

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)
)