epoc32/include/stdapis/boost/preprocessor/seq/first_n.hpp
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/preprocessor/seq/first_n.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,30 @@
     1.4 +# /* **************************************************************************
     1.5 +#  *                                                                          *
     1.6 +#  *     (C) Copyright Paul Mensonides 2002.
     1.7 +#  *     Distributed under the Boost Software License, Version 1.0. (See
     1.8 +#  *     accompanying file LICENSE_1_0.txt or copy at
     1.9 +#  *     http://www.boost.org/LICENSE_1_0.txt)
    1.10 +#  *                                                                          *
    1.11 +#  ************************************************************************** */
    1.12 +#
    1.13 +# /* See http://www.boost.org for most recent version. */
    1.14 +#
    1.15 +# ifndef BOOST_PREPROCESSOR_SEQ_FIRST_N_HPP
    1.16 +# define BOOST_PREPROCESSOR_SEQ_FIRST_N_HPP
    1.17 +#
    1.18 +# include <boost/preprocessor/config/config.hpp>
    1.19 +# include <boost/preprocessor/control/if.hpp>
    1.20 +# include <boost/preprocessor/seq/detail/split.hpp>
    1.21 +# include <boost/preprocessor/tuple/eat.hpp>
    1.22 +# include <boost/preprocessor/tuple/elem.hpp>
    1.23 +#
    1.24 +# /* BOOST_PP_SEQ_FIRST_N */
    1.25 +#
    1.26 +# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
    1.27 +#    define BOOST_PP_SEQ_FIRST_N(n, seq) BOOST_PP_IF(n, BOOST_PP_TUPLE_ELEM, BOOST_PP_TUPLE_EAT_3)(2, 0, BOOST_PP_SEQ_SPLIT(n, seq (nil)))
    1.28 +# else
    1.29 +#    define BOOST_PP_SEQ_FIRST_N(n, seq) BOOST_PP_SEQ_FIRST_N_I(n, seq)
    1.30 +#    define BOOST_PP_SEQ_FIRST_N_I(n, seq) BOOST_PP_IF(n, BOOST_PP_TUPLE_ELEM, BOOST_PP_TUPLE_EAT_3)(2, 0, BOOST_PP_SEQ_SPLIT(n, seq (nil)))
    1.31 +# endif
    1.32 +#
    1.33 +# endif