2004-07-01 20:15:51 +00:00
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=iso-8859-1" >
< meta name = "GENERATOR" content = "Mozilla/4.77 [en] (X11; U; Linux 2.2.19 i686) [Netscape]" >
< meta name = "Author" content = "Herve Bronnimann" >
< meta name = "Description" content = "Small library to propose minmax_element algorithm." >
< title > Boost minmax library synopsis< / title >
< / head >
< body text = "#000000" bgcolor = "#FFFFFF" link = "#0000EE" vlink = "#551A8B" alink = "#FF0000" >
< center >
< h1 >
2004-07-04 22:08:29 +00:00
Minmax_element complete synopsis< / h1 > < / center >
2004-07-01 20:15:51 +00:00
< h3 >
2004-07-04 22:08:29 +00:00
Synopsis of < tt > < boost/algorithm/minmax.hpp>< / tt > < / h3 >
2004-07-01 20:15:51 +00:00
2004-07-04 22:08:29 +00:00
< pre > #include < boost/tuple/tuple.hpp>
2004-07-01 20:15:51 +00:00
2004-07-04 22:08:29 +00:00
namespace boost {
2004-07-01 20:15:51 +00:00
template < class T>
2004-07-04 22:08:29 +00:00
tuple< T const& , T const& > >
2004-07-01 20:15:51 +00:00
minmax(const T& a, const T& b);
2019-04-23 13:48:19 +02:00
template < class T, class < a href = "https://www.boost.org/sgi/stl/BinaryPredicate.html" > BinaryPredicate< / a > >
2004-07-04 22:08:29 +00:00
tuple< T const& , T const& > >
2004-07-01 20:15:51 +00:00
minmax(const T& a, const T& b, BinaryPredicate comp);
2004-07-04 22:08:29 +00:00
}
2004-07-01 20:15:51 +00:00
< / pre >
< h3 >
2004-07-04 22:08:29 +00:00
Synopsis of < tt > < boost/algorithm/minmax_element.hpp>< / tt > < / h3 >
< pre > #include < utility> //for std::pair
2004-07-01 20:15:51 +00:00
2004-07-04 22:08:29 +00:00
namespace boost {
2004-07-01 20:15:51 +00:00
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > >
2004-07-01 20:15:51 +00:00
std::pair< ForwardIterator,ForwardIterator>
minmax_element(ForwardIterator first, ForwardIterator last);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > , class < a href = "https://www.boost.org/sgi/stl/BinaryPredicate.html" > BinaryPredicate< / a > >
2004-07-01 20:15:51 +00:00
std::pair< ForwardIterator,ForwardIterator>
minmax_element(ForwardIterator first, ForwardIterator last,
BinaryPredicate comp);
// Variants
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > >
2004-07-01 20:15:51 +00:00
ForwardIterator first_min_element(ForwardIterator first, ForwardIterator last);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > , class < a href = "https://www.boost.org/sgi/stl/BinaryPredicate.html" > BinaryPredicate< / a > >
2004-07-01 20:15:51 +00:00
ForwardIterator first_min_element(ForwardIterator first, ForwardIterator last,
BinaryPredicate comp);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > >
2004-07-01 20:15:51 +00:00
ForwardIterator last_min_element(ForwardIterator first, ForwardIterator last);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > , class < a href = "https://www.boost.org/sgi/stl/BinaryPredicate.html" > BinaryPredicate< / a > >
2004-07-01 20:15:51 +00:00
ForwardIterator last_min_element(ForwardIterator first, ForwardIterator last,
BinaryPredicate comp);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > >
2004-07-01 20:15:51 +00:00
ForwardIterator first_max_element(ForwardIterator first, ForwardIterator last);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > , class < a href = "https://www.boost.org/sgi/stl/BinaryPredicate.html" > BinaryPredicate< / a > >
2004-07-01 20:15:51 +00:00
ForwardIterator first_max_element(ForwardIterator first, ForwardIterator last,
BinaryPredicate comp);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > >
2004-07-01 20:15:51 +00:00
ForwardIterator last_max_element(ForwardIterator first, ForwardIterator last);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > , class < a href = "https://www.boost.org/sgi/stl/BinaryPredicate.html" > BinaryPredicate< / a > >
2004-07-01 20:15:51 +00:00
ForwardIterator last_max_element(ForwardIterator first, ForwardIterator last,
BinaryPredicate comp);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > >
2004-07-01 20:15:51 +00:00
std::pair< ForwardIterator,ForwardIterator>
first_min_first_max_element(ForwardIterator first, ForwardIterator last);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > , class < a href = "https://www.boost.org/sgi/stl/BinaryPredicate.html" > BinaryPredicate< / a > >
2004-07-01 20:15:51 +00:00
std::pair< ForwardIterator,ForwardIterator>
first_min_first_max_element(ForwardIterator first, ForwardIterator last,
BinaryPredicate comp);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > >
2004-07-01 20:15:51 +00:00
std::pair< ForwardIterator,ForwardIterator>
first_min_last_max_element(ForwardIterator first, ForwardIterator last);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > , class < a href = "https://www.boost.org/sgi/stl/BinaryPredicate.html" > BinaryPredicate< / a > >
2004-07-01 20:15:51 +00:00
std::pair< ForwardIterator,ForwardIterator>
first_min_last_max_element(ForwardIterator first, ForwardIterator last,
BinaryPredicate comp);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > >
2004-07-01 20:15:51 +00:00
std::pair< ForwardIterator,ForwardIterator>
last_min_first_max_element(ForwardIterator first, ForwardIterator last);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > , class < a href = "https://www.boost.org/sgi/stl/BinaryPredicate.html" > BinaryPredicate< / a > >
2004-07-01 20:15:51 +00:00
std::pair< ForwardIterator,ForwardIterator>
last_min_first_max_element(ForwardIterator first, ForwardIterator last,
BinaryPredicate comp);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > >
2004-07-01 20:15:51 +00:00
std::pair< ForwardIterator,ForwardIterator>
last_min_last_max_element(ForwardIterator first, ForwardIterator last);
2019-04-23 13:48:19 +02:00
template < class < a href = "https://www.boost.org/sgi/stl/ForwardIterator.html" > ForwardIterator< / a > , class < a href = "https://www.boost.org/sgi/stl/BinaryPredicate.html" > BinaryPredicate< / a > >
2004-07-01 20:15:51 +00:00
std::pair< ForwardIterator,ForwardIterator>
last_min_last_max_element(ForwardIterator first, ForwardIterator last,
BinaryPredicate comp);
}< / pre >
< hr SIZE = "6" >
< br > Last modified 2002-07-01
< p > < font face = "Arial,Helvetica" > < font size = -1 > © Copyright Hervé
Brö nnimann, Polytechnic University, 2002--2004.
Use, modification, and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying file < a href = "../../../../LICENSE_1_0.txt" > License_1_0.txt< / a > or copy at
< a href = "http://www.boost.org/LICENSE_1_0.txt" > http://www.boost.org/LICENSE_1_0.txt< / a > )
< / font > < / font >
< / body >
< / html >