Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-22 08:42:17

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_REPLACE_HPP
0015 # define BOOST_PREPROCESSOR_SEQ_REPLACE_HPP
0016 0017 ">#
0018 # include <boost/preprocessor/arithmetic/dec.hpp>
0019 # include <boost/preprocessor/arithmetic/inc.hpp>
0020 # include <boost/preprocessor/config/config.hpp>
0021 # include <boost/preprocessor/comparison/equal.hpp>
0022 # include <boost/preprocessor/control/iif.hpp>
0023 # include <boost/preprocessor/seq/first_n.hpp>
0024 # include <boost/preprocessor/seq/rest_n.hpp>
0025 # include <boost/preprocessor/seq/size.hpp>
0026 0027 ">#
0028 # /* BOOST_PP_SEQ_REPLACE */
0029 0030 ">#
0031 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0032 #    define BOOST_PP_SEQ_REPLACE(seq, i, elem) BOOST_PP_SEQ_FIRST_N(i, seq) (elem) BOOST_PP_SEQ_REPLACE_DETAIL_REST(seq, i)
0033 # else
0034 #    define BOOST_PP_SEQ_REPLACE(seq, i, elem) BOOST_PP_SEQ_REPLACE_I(seq, i, elem)
0035 #    define BOOST_PP_SEQ_REPLACE_I(seq, i, elem) BOOST_PP_SEQ_FIRST_N(i, seq) (elem) BOOST_PP_SEQ_REPLACE_DETAIL_REST(seq, i)
0036 # endif
0037 0038 ">#
0039 #    define BOOST_PP_SEQ_REPLACE_DETAIL_REST_EMPTY(seq, i)
0040 #    define BOOST_PP_SEQ_REPLACE_DETAIL_REST_VALID(seq, i) BOOST_PP_SEQ_REST_N(BOOST_PP_INC(i), seq)
0041 #    define BOOST_PP_SEQ_REPLACE_DETAIL_REST(seq, i) \
0042         BOOST_PP_IIF \
0043             ( \
0044             BOOST_PP_EQUAL(i,BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(seq))), \
0045             BOOST_PP_SEQ_REPLACE_DETAIL_REST_EMPTY, \
0046             BOOST_PP_SEQ_REPLACE_DETAIL_REST_VALID \
0047             ) \
0048         (seq, i) \
0049 /**/
0050 0051 ">#
0052 # endif