1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/mpl/accumulate.hpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,39 @@
1.4 +
1.5 +#ifndef BOOST_MPL_ACCUMULATE_HPP_INCLUDED
1.6 +#define BOOST_MPL_ACCUMULATE_HPP_INCLUDED
1.7 +
1.8 +// Copyright Aleksey Gurtovoy 2001-2004
1.9 +// Copyright David Abrahams 2001-2002
1.10 +//
1.11 +// Distributed under the Boost Software License, Version 1.0.
1.12 +// (See accompanying file LICENSE_1_0.txt or copy at
1.13 +// http://www.boost.org/LICENSE_1_0.txt)
1.14 +//
1.15 +// See http://www.boost.org/libs/mpl for documentation.
1.16 +
1.17 +// $Source: /cvsroot/boost/boost/boost/mpl/accumulate.hpp,v $
1.18 +// $Date: 2005/01/19 15:20:21 $
1.19 +// $Revision: 1.2 $
1.20 +
1.21 +#include <boost/mpl/fold.hpp>
1.22 +#include <boost/mpl/aux_/na_spec.hpp>
1.23 +#include <boost/mpl/aux_/lambda_support.hpp>
1.24 +
1.25 +namespace boost { namespace mpl {
1.26 +
1.27 +template<
1.28 + typename BOOST_MPL_AUX_NA_PARAM(Sequence)
1.29 + , typename BOOST_MPL_AUX_NA_PARAM(State)
1.30 + , typename BOOST_MPL_AUX_NA_PARAM(ForwardOp)
1.31 + >
1.32 +struct accumulate
1.33 + : fold<Sequence,State,ForwardOp>
1.34 +{
1.35 + BOOST_MPL_AUX_LAMBDA_SUPPORT(3,accumulate,(Sequence,State,ForwardOp))
1.36 +};
1.37 +
1.38 +BOOST_MPL_AUX_NA_SPEC(3, accumulate)
1.39 +
1.40 +}}
1.41 +
1.42 +#endif // BOOST_MPL_ACCUMULATE_HPP_INCLUDED