epoc32/include/stdapis/boost/mpl/reverse_iter_fold.hpp
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/mpl/reverse_iter_fold.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,56 @@
     1.4 +
     1.5 +#ifndef BOOST_MPL_ITER_FOLD_BACKWARD_HPP_INCLUDED
     1.6 +#define BOOST_MPL_ITER_FOLD_BACKWARD_HPP_INCLUDED
     1.7 +
     1.8 +// Copyright Aleksey Gurtovoy 2001-2004
     1.9 +// Copyright Dave 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/reverse_iter_fold.hpp,v $
    1.18 +// $Date: 2004/09/02 15:40:42 $
    1.19 +// $Revision: 1.2 $
    1.20 +
    1.21 +#include <boost/mpl/begin_end.hpp>
    1.22 +#include <boost/mpl/O1_size.hpp>
    1.23 +#include <boost/mpl/arg.hpp>
    1.24 +#include <boost/mpl/lambda.hpp>
    1.25 +#include <boost/mpl/aux_/reverse_iter_fold_impl.hpp>
    1.26 +#include <boost/mpl/aux_/na_spec.hpp>
    1.27 +#include <boost/mpl/aux_/lambda_support.hpp>
    1.28 +
    1.29 +namespace boost { namespace mpl {
    1.30 +
    1.31 +template<
    1.32 +      typename BOOST_MPL_AUX_NA_PARAM(Sequence)
    1.33 +    , typename BOOST_MPL_AUX_NA_PARAM(State)
    1.34 +    , typename BOOST_MPL_AUX_NA_PARAM(BackwardOp)
    1.35 +    , typename ForwardOp = arg<1>
    1.36 +    >
    1.37 +struct reverse_iter_fold
    1.38 +{
    1.39 +    typedef typename aux::reverse_iter_fold_impl<
    1.40 +          ::boost::mpl::O1_size<Sequence>::value
    1.41 +        , typename begin<Sequence>::type
    1.42 +        , typename end<Sequence>::type
    1.43 +        , State
    1.44 +        , typename lambda<BackwardOp>::type
    1.45 +        , typename lambda<ForwardOp>::type
    1.46 +        >::state type;
    1.47 +
    1.48 +    BOOST_MPL_AUX_LAMBDA_SUPPORT(
    1.49 +          4
    1.50 +        , reverse_iter_fold
    1.51 +        , (Sequence,State,BackwardOp,ForwardOp)
    1.52 +        )
    1.53 +};
    1.54 +
    1.55 +BOOST_MPL_AUX_NA_SPEC(3, reverse_iter_fold)
    1.56 +
    1.57 +}}
    1.58 +
    1.59 +#endif // BOOST_MPL_ITER_FOLD_BACKWARD_HPP_INCLUDED