mirror of
https://github.com/boostorg/algorithm.git
synced 2025-06-25 20:11:50 +02:00
Compare commits
5 Commits
boost-1.53
...
boost-1.33
Author | SHA1 | Date | |
---|---|---|---|
fe9e7eac19 | |||
b1627fcec1 | |||
a38c211e8a | |||
5af41051f0 | |||
6c5f2a8d33 |
@ -35,7 +35,7 @@ means that all the elements are distinct and in increasing order, <i>decrea</i>s
|
|||||||
is the reverse, and <i>random</i> is produced by random_shuffle.
|
is the reverse, and <i>random</i> is produced by random_shuffle.
|
||||||
<br>
|
<br>
|
||||||
The program that created these tables is included in the distribution,
|
The program that created these tables is included in the distribution,
|
||||||
under <a href=""../example/minmax_timer.cpp"">minmax_timer.cpp</a>
|
under <a href="../example/minmax_timer.cpp">minmax_timer.cpp</a>
|
||||||
<br>
|
<br>
|
||||||
<center><table BORDER NOSAVE >
|
<center><table BORDER NOSAVE >
|
||||||
<tr NOSAVE>
|
<tr NOSAVE>
|
||||||
|
@ -56,7 +56,7 @@ be enough. The present library solves both problems.</p>
|
|||||||
<tt>minmax</tt>
|
<tt>minmax</tt>
|
||||||
as straightforward extensions of the C++
|
as straightforward extensions of the C++
|
||||||
standard. As it returns a pair of <tt>const&</tt>, we must use the <a
|
standard. As it returns a pair of <tt>const&</tt>, we must use the <a
|
||||||
href=:../../tuple/index.html>Boost.tuple</a> library to construct such
|
href=:../../../../tuple/index.html>Boost.tuple</a> library to construct such
|
||||||
pairs. (Please note: the intent is not to fix the known defaults of
|
pairs. (Please note: the intent is not to fix the known defaults of
|
||||||
<tt>std::min</tt>
|
<tt>std::min</tt>
|
||||||
and <tt>std::max</tt>, but to add one more algorithms that combines both; see the
|
and <tt>std::max</tt>, but to add one more algorithms that combines both; see the
|
||||||
@ -95,7 +95,7 @@ namespace boost {
|
|||||||
tuple<T const&, T const&> >
|
tuple<T const&, T const&> >
|
||||||
minmax(const T& a, const T& b);
|
minmax(const T& a, const T& b);
|
||||||
|
|
||||||
template <class T, class <a href="http://www.sgi.com/tech/stl/ BinaryPredicate.html">BinaryPredicate</a>>
|
template <class T, class <a href="http://www.sgi.com/tech/stl/BinaryPredicate.html">BinaryPredicate</a>>
|
||||||
tuple<T const&, T const&> >
|
tuple<T const&, T const&> >
|
||||||
minmax(const T& a, const T& b, BinaryPredicate comp);
|
minmax(const T& a, const T& b, BinaryPredicate comp);
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@
|
|||||||
|
|
||||||
As we can see, input of the <functionname>find_last()</functionname> algorithm can be also
|
As we can see, input of the <functionname>find_last()</functionname> algorithm can be also
|
||||||
char[] because this type is supported by
|
char[] because this type is supported by
|
||||||
<ulink linkend="../../libs/range/doc/index.html">Boost.Range</ulink>.
|
<ulink url="../../libs/range/index.html">Boost.Range</ulink>.
|
||||||
|
|
||||||
The following lines transform the result. Notice that
|
The following lines transform the result. Notice that
|
||||||
<ulink url="../../libs/range/doc/utility_class.html"><code>boost::iterator_range</code></ulink> has familiar
|
<ulink url="../../libs/range/doc/utility_class.html"><code>boost::iterator_range</code></ulink> has familiar
|
||||||
|
Reference in New Issue
Block a user