Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Boost minmax library synopsis

Minmax_element complete synopsis

Synopsis of

#include 

namespace boost {

  template 
  tuple >
  minmax(const T& a, const T& b);

  template BinaryPredicate>
  tuple >
  minmax(const T& a, const T& b, BinaryPredicate comp);

}

Synopsis of

#include  //for std::pair

namespace boost {

  template ForwardIterator>
  std::pair
  minmax_element(ForwardIterator first, ForwardIterator last);

  template ForwardIterator, class BinaryPredicate>
  std::pair
  minmax_element(ForwardIterator first, ForwardIterator last,
                 BinaryPredicate comp);

  // Variants

  template ForwardIterator>
  ForwardIterator first_min_element(ForwardIterator first, ForwardIterator last);

  template ForwardIterator, class BinaryPredicate>
  ForwardIterator first_min_element(ForwardIterator first, ForwardIterator last,
                                    BinaryPredicate comp);

  template ForwardIterator>
  ForwardIterator last_min_element(ForwardIterator first, ForwardIterator last);

  template ForwardIterator, class BinaryPredicate>
  ForwardIterator last_min_element(ForwardIterator first, ForwardIterator last,
                                   BinaryPredicate comp);

  template ForwardIterator>
  ForwardIterator first_max_element(ForwardIterator first, ForwardIterator last);

  template ForwardIterator, class BinaryPredicate>
  ForwardIterator first_max_element(ForwardIterator first, ForwardIterator last,
                                    BinaryPredicate comp);

  template ForwardIterator>
  ForwardIterator last_max_element(ForwardIterator first, ForwardIterator last);

  template ForwardIterator, class BinaryPredicate>
  ForwardIterator last_max_element(ForwardIterator first, ForwardIterator last,
                                   BinaryPredicate comp);

  template ForwardIterator>
  std::pair
  first_min_first_max_element(ForwardIterator first, ForwardIterator last);

  template ForwardIterator, class BinaryPredicate>
  std::pair
  first_min_first_max_element(ForwardIterator first, ForwardIterator last,
                             BinaryPredicate comp);

  template ForwardIterator>
  std::pair
  first_min_last_max_element(ForwardIterator first, ForwardIterator last);

  template ForwardIterator, class BinaryPredicate>
  std::pair
  first_min_last_max_element(ForwardIterator first, ForwardIterator last,
                             BinaryPredicate comp);

  template ForwardIterator>
  std::pair
  last_min_first_max_element(ForwardIterator first, ForwardIterator last);

  template ForwardIterator, class BinaryPredicate>
  std::pair
  last_min_first_max_element(ForwardIterator first, ForwardIterator last,
                             BinaryPredicate comp);

  template ForwardIterator>
  std::pair
  last_min_last_max_element(ForwardIterator first, ForwardIterator last);

  template ForwardIterator, class BinaryPredicate>
  std::pair
  last_min_last_max_element(ForwardIterator first, ForwardIterator last,
                            BinaryPredicate comp);

}

Last modified 2002-07-01

© 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 License_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)