File indexing completed on 2025-01-18 09:49:25
0001 #
0002
0003
0004
0005
0006
0007
0008
0009 #
0010 #
0011 #
0012 # ifndef BOOST_PREPROCESSOR_SEQ_CAT_HPP
0013 # define BOOST_PREPROCESSOR_SEQ_CAT_HPP
0014 #
0015 # include <boost/preprocessor/arithmetic/dec.hpp>
0016 # include <boost/preprocessor/config/config.hpp>
0017 # include <boost/preprocessor/control/if.hpp>
0018 # include <boost/preprocessor/seq/fold_left.hpp>
0019 # include <boost/preprocessor/seq/seq.hpp>
0020 # include <boost/preprocessor/seq/size.hpp>
0021 # include <boost/preprocessor/tuple/eat.hpp>
0022 #
0023 #
0024 #
0025 # define BOOST_PP_SEQ_CAT(seq) \
0026 BOOST_PP_IF( \
0027 BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(seq)), \
0028 BOOST_PP_SEQ_CAT_I, \
0029 BOOST_PP_SEQ_HEAD \
0030 )(seq) \
0031
0032 # define BOOST_PP_SEQ_CAT_I(seq) BOOST_PP_SEQ_FOLD_LEFT(BOOST_PP_SEQ_CAT_O, BOOST_PP_SEQ_HEAD(seq), BOOST_PP_SEQ_TAIL(seq))
0033 #
0034 # define BOOST_PP_SEQ_CAT_O(s, st, elem) BOOST_PP_SEQ_CAT_O_I(st, elem)
0035 # define BOOST_PP_SEQ_CAT_O_I(a, b) a ## b
0036 #
0037 #
0038 #
0039 # define BOOST_PP_SEQ_CAT_S(s, seq) \
0040 BOOST_PP_IF( \
0041 BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(seq)), \
0042 BOOST_PP_SEQ_CAT_S_I_A, \
0043 BOOST_PP_SEQ_CAT_S_I_B \
0044 )(s, seq) \
0045
0046 # define BOOST_PP_SEQ_CAT_S_I_A(s, seq) BOOST_PP_SEQ_FOLD_LEFT_ ## s(BOOST_PP_SEQ_CAT_O, BOOST_PP_SEQ_HEAD(seq), BOOST_PP_SEQ_TAIL(seq))
0047 # define BOOST_PP_SEQ_CAT_S_I_B(s, seq) BOOST_PP_SEQ_HEAD(seq)
0048 #
0049 # endif