1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/mpl/min_element.hpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,40 @@
1.4 +
1.5 +#ifndef BOOST_MPL_MIN_ELEMENT_HPP_INCLUDED
1.6 +#define BOOST_MPL_MIN_ELEMENT_HPP_INCLUDED
1.7 +
1.8 +// Copyright David Abrahams 2004
1.9 +//
1.10 +// Distributed under the Boost Software License, Version 1.0.
1.11 +// (See accompanying file LICENSE_1_0.txt or copy at
1.12 +// http://www.boost.org/LICENSE_1_0.txt)
1.13 +//
1.14 +// See http://www.boost.org/libs/mpl for documentation.
1.15 +
1.16 +// $Source: /cvsroot/boost/boost/boost/mpl/min_element.hpp,v $
1.17 +// $Date: 2004/09/02 15:40:41 $
1.18 +// $Revision: 1.2 $
1.19 +
1.20 +#include <boost/mpl/max_element.hpp>
1.21 +#include <boost/mpl/not.hpp>
1.22 +
1.23 +namespace boost { namespace mpl {
1.24 +
1.25 +BOOST_MPL_AUX_COMMON_NAME_WKND(min_element)
1.26 +
1.27 +template<
1.28 + typename BOOST_MPL_AUX_NA_PARAM(Sequence)
1.29 + , typename Predicate = less<_,_>
1.30 + >
1.31 +struct min_element
1.32 + : max_element<
1.33 + Sequence
1.34 + , mpl::not_<Predicate>
1.35 + >
1.36 +{
1.37 +};
1.38 +
1.39 +BOOST_MPL_AUX_NA_SPEC(1, min_element)
1.40 +
1.41 +}}
1.42 +
1.43 +#endif // BOOST_MPL_MIN_ELEMENT_HPP_INCLUDED