cppannotations/yo/stl/maxelement.yo
fbbrokken 6881bc3814 The trunk directory contains the latest version (6.4.0c) of the C++
Annotations. 

The branches and tags directory are empty, since I couldn't
svnadmin import a repostitory dump. Many earlier versions exist, though, and
if you want the full archive, just let me know and I'll send you the svnadmin
dump of my full C++ Annotations archive.

Frank B. Brokken <f.b.brokken@rug.nl>



git-svn-id: https://cppannotations.svn.sourceforge.net/svnroot/cppannotations/trunk@3 f6dd340e-d3f9-0310-b409-bdd246841980
2006-09-04 08:26:34 +00:00

25 lines
1 KiB
Text

hi(max_element())
itemization(
it() Header file:
centt(#include <algorithm>)
it() Function prototypes:
itemization(
itt(ForwardIterator max_element(ForwardIterator first,
ForwardIterator last);)
itt(ForwardIterator max_element+OPENPARForwardIterator first,
ForwardIterator last,)linebreak()tt(Comparator comp+CLOSEPAR;)
)
it() Description:
itemization(
it() The first prototype: an iterator pointing to the largest
element in the range implied by rangett(first, last) is returned. The
ti(operator<()) of the data type to which the iterators point is used.
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 most often tt(true), compared with other elements, is
returned.
)
it() Example:
verbinclude(stl/cc/maxelement.cc)
)