Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:09:16

0001 # /* **************************************************************************
0002 #  *                                                                          *
0003 #  *     (C) Copyright Paul Mensonides 2002.
0004 #  *     Distributed under the Boost Software License, Version 1.0. (See
0005 #  *     accompanying file LICENSE_1_0.txt or copy at
0006 #  *     http://www.boost.org/LICENSE_1_0.txt)
0007 #  *                                                                          *
0008 #  ************************************************************************** */
0009 0010 ">#
0011 # /* See http://www.boost.org for most recent version. */
0012 0013 ">#
0014 # ifndef BOOST_PREPROCESSOR_SEQ_REST_N_HPP
0015 # define BOOST_PREPROCESSOR_SEQ_REST_N_HPP
0016 0017 ">#
0018 # include <boost/preprocessor/arithmetic/inc.hpp>
0019 # include <boost/preprocessor/comparison/not_equal.hpp>
0020 # include <boost/preprocessor/config/config.hpp>
0021 # include <boost/preprocessor/control/iif.hpp>
0022 # include <boost/preprocessor/facilities/identity.hpp>
0023 # include <boost/preprocessor/logical/bitand.hpp>
0024 # include <boost/preprocessor/seq/detail/is_empty.hpp>
0025 # include <boost/preprocessor/seq/detail/split.hpp>
0026 # include <boost/preprocessor/tuple/elem.hpp>
0027 0028 ">#
0029 # /* BOOST_PP_SEQ_REST_N */
0030 0031 ">#
0032 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0033 #    define BOOST_PP_SEQ_REST_N(n, seq) BOOST_PP_SEQ_REST_N_DETAIL_EXEC(n, seq, BOOST_PP_SEQ_DETAIL_EMPTY_SIZE(seq))
0034 # else
0035 #    define BOOST_PP_SEQ_REST_N(n, seq) BOOST_PP_SEQ_REST_N_I(n, seq)
0036 #    define BOOST_PP_SEQ_REST_N_I(n, seq) BOOST_PP_SEQ_REST_N_DETAIL_EXEC(n, seq, BOOST_PP_SEQ_DETAIL_EMPTY_SIZE(seq))
0037 # endif
0038 0039 ">#
0040 #    define BOOST_PP_SEQ_REST_N_DETAIL_EXEC_NO_MATCH(n, seq)
0041 #    define BOOST_PP_SEQ_REST_N_DETAIL_EXEC_MATCH(n, seq) \
0042             BOOST_PP_TUPLE_ELEM(2, 1, BOOST_PP_SEQ_SPLIT(BOOST_PP_INC(n), BOOST_PP_IDENTITY( (nil) seq )))() \
0043 /**/
0044 #    define BOOST_PP_SEQ_REST_N_DETAIL_EXEC(n, seq, size) \
0045         BOOST_PP_IIF \
0046             ( \
0047             BOOST_PP_BITAND \
0048                 ( \
0049                 BOOST_PP_SEQ_DETAIL_IS_NOT_EMPTY_SIZE(size), \
0050                 BOOST_PP_NOT_EQUAL(n,size) \
0051                 ), \
0052             BOOST_PP_SEQ_REST_N_DETAIL_EXEC_MATCH, \
0053             BOOST_PP_SEQ_REST_N_DETAIL_EXEC_NO_MATCH \
0054             ) \
0055         (n, seq)  \
0056 /**/
0057 0058 ">#
0059 # endif