1.1 --- a/epoc32/include/stdapis/boost/mpl/at.hpp Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/stdapis/boost/mpl/at.hpp Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -1,39 +1,52 @@
1.4 -# /* Copyright (C) 2001
1.5 -# * Housemarque Oy
1.6 -# * http://www.housemarque.com
1.7 -# *
1.8 -# * Distributed under the Boost Software License, Version 1.0. (See
1.9 -# * accompanying file LICENSE_1_0.txt or copy at
1.10 -# * http://www.boost.org/LICENSE_1_0.txt)
1.11 -# */
1.12 -#
1.13 -# /* Revised by Paul Mensonides (2002) */
1.14 -#
1.15 -# /* See http://www.boost.org for most recent version. */
1.16 -#
1.17 -# ifndef BOOST_PREPROCESSOR_LIST_AT_HPP
1.18 -# define BOOST_PREPROCESSOR_LIST_AT_HPP
1.19 -#
1.20 -# include <boost/preprocessor/config/config.hpp>
1.21 -# include <boost/preprocessor/list/adt.hpp>
1.22 -# include <boost/preprocessor/list/rest_n.hpp>
1.23 -#
1.24 -# /* BOOST_PP_LIST_AT */
1.25 -#
1.26 -# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
1.27 -# define BOOST_PP_LIST_AT(list, index) BOOST_PP_LIST_FIRST(BOOST_PP_LIST_REST_N(index, list))
1.28 -# else
1.29 -# define BOOST_PP_LIST_AT(list, index) BOOST_PP_LIST_AT_I(list, index)
1.30 -# define BOOST_PP_LIST_AT_I(list, index) BOOST_PP_LIST_FIRST(BOOST_PP_LIST_REST_N(index, list))
1.31 -# endif
1.32 -#
1.33 -# /* BOOST_PP_LIST_AT_D */
1.34 -#
1.35 -# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
1.36 -# define BOOST_PP_LIST_AT_D(d, list, index) BOOST_PP_LIST_FIRST(BOOST_PP_LIST_REST_N_D(d, index, list))
1.37 -# else
1.38 -# define BOOST_PP_LIST_AT_D(d, list, index) BOOST_PP_LIST_AT_D_I(d, list, index)
1.39 -# define BOOST_PP_LIST_AT_D_I(d, list, index) BOOST_PP_LIST_FIRST(BOOST_PP_LIST_REST_N_D(d, index, list))
1.40 -# endif
1.41 -#
1.42 -# endif
1.43 +
1.44 +#ifndef BOOST_MPL_AT_HPP_INCLUDED
1.45 +#define BOOST_MPL_AT_HPP_INCLUDED
1.46 +
1.47 +// Copyright Aleksey Gurtovoy 2000-2004
1.48 +//
1.49 +// Distributed under the Boost Software License, Version 1.0.
1.50 +// (See accompanying file LICENSE_1_0.txt or copy at
1.51 +// http://www.boost.org/LICENSE_1_0.txt)
1.52 +//
1.53 +// See http://www.boost.org/libs/mpl for documentation.
1.54 +
1.55 +// $Source: /cvsroot/boost/boost/boost/mpl/at.hpp,v $
1.56 +// $Date: 2004/09/04 01:33:46 $
1.57 +// $Revision: 1.7 $
1.58 +
1.59 +#include <boost/mpl/at_fwd.hpp>
1.60 +#include <boost/mpl/aux_/at_impl.hpp>
1.61 +#include <boost/mpl/long.hpp>
1.62 +#include <boost/mpl/sequence_tag.hpp>
1.63 +#include <boost/mpl/aux_/na_spec.hpp>
1.64 +#include <boost/mpl/aux_/lambda_support.hpp>
1.65 +#include <boost/mpl/aux_/nttp_decl.hpp>
1.66 +
1.67 +namespace boost { namespace mpl {
1.68 +
1.69 +template<
1.70 + typename BOOST_MPL_AUX_NA_PARAM(Sequence)
1.71 + , typename BOOST_MPL_AUX_NA_PARAM(N)
1.72 + >
1.73 +struct at
1.74 + : at_impl< typename sequence_tag<Sequence>::type >
1.75 + ::template apply< Sequence,N >
1.76 +{
1.77 + BOOST_MPL_AUX_LAMBDA_SUPPORT(2,at,(Sequence,N))
1.78 +};
1.79 +
1.80 +template<
1.81 + typename Sequence
1.82 + , BOOST_MPL_AUX_NTTP_DECL(long, N)
1.83 + >
1.84 +struct at_c
1.85 + : at_impl< typename sequence_tag<Sequence>::type >
1.86 + ::template apply< Sequence,mpl::long_<N> >
1.87 +{
1.88 +};
1.89 +
1.90 +BOOST_MPL_AUX_NA_SPEC(2, at)
1.91 +
1.92 +}}
1.93 +
1.94 +#endif // BOOST_MPL_AT_HPP_INCLUDED