File indexing completed on 2025-01-18 09:48:07
0001 #
0002
0003
0004
0005
0006
0007
0008
0009
0010 #
0011 #
0012 #
0013 # ifndef BOOST_PREPROCESSOR_ARRAY_TO_LIST_HPP
0014 # define BOOST_PREPROCESSOR_ARRAY_TO_LIST_HPP
0015 #
0016 # include <boost/preprocessor/cat.hpp>
0017 # include <boost/preprocessor/config/config.hpp>
0018 # include <boost/preprocessor/array/size.hpp>
0019 # include <boost/preprocessor/control/if.hpp>
0020 # include <boost/preprocessor/tuple/to_list.hpp>
0021 #
0022 #
0023 #
0024 # define BOOST_PP_ARRAY_TO_LIST(array) \
0025 BOOST_PP_IF \
0026 ( \
0027 BOOST_PP_ARRAY_SIZE(array), \
0028 BOOST_PP_ARRAY_TO_LIST_DO, \
0029 BOOST_PP_ARRAY_TO_LIST_EMPTY \
0030 ) \
0031 (array) \
0032
0033 #
0034 # define BOOST_PP_ARRAY_TO_LIST_EMPTY(array) BOOST_PP_NIL
0035 #
0036 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
0037 # define BOOST_PP_ARRAY_TO_LIST_DO(array) BOOST_PP_ARRAY_TO_LIST_I(BOOST_PP_TUPLE_TO_LIST, array)
0038 # define BOOST_PP_ARRAY_TO_LIST_I(m, args) BOOST_PP_ARRAY_TO_LIST_II(m, args)
0039 # define BOOST_PP_ARRAY_TO_LIST_II(m, args) BOOST_PP_CAT(m ## args,)
0040 # elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
0041 # define BOOST_PP_ARRAY_TO_LIST_DO(array) BOOST_PP_ARRAY_TO_LIST_I(array)
0042 # define BOOST_PP_ARRAY_TO_LIST_I(array) BOOST_PP_TUPLE_TO_LIST ## array
0043 # else
0044 # define BOOST_PP_ARRAY_TO_LIST_DO(array) BOOST_PP_TUPLE_TO_LIST array
0045 # endif
0046 #
0047 # endif