mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
20 lines
806 B
Text
20 lines
806 B
Text
hi(min)
|
|
itemization(
|
|
it() Header file: tt(<algorithm>)
|
|
it() Function prototypes:
|
|
itemization(
|
|
itt(Type const &min(Type const &one, Type const &two);)
|
|
itt(Type const &min(Type const &one, Type const &two, Comparator
|
|
comp);)
|
|
)
|
|
it() Description:
|
|
itemization(
|
|
it() The first prototype: the smaller of the two elements tt(one)
|
|
and tt(two) is returned using the tt(operator<) of the data type to which
|
|
the iterators point to decide which of the two elements is the smaller.
|
|
it() The second prototype: tt(one) is returned if the binary
|
|
predicate tt(comp(one, two)) returns tt(false), otherwise tt(two) is returned.
|
|
)
|
|
it() Example:
|
|
verbinclude(-a examples/min.cc)
|
|
)
|