File indexing completed on 2025-01-18 09:48:52
0001 #
0002
0003
0004
0005
0006
0007
0008
0009 #
0010 #
0011 #
0012 #
0013 #
0014 # ifndef BOOST_PREPROCESSOR_LIST_TO_TUPLE_HPP
0015 # define BOOST_PREPROCESSOR_LIST_TO_TUPLE_HPP
0016 #
0017 # include <boost/preprocessor/config/config.hpp>
0018 # include <boost/preprocessor/list/enum.hpp>
0019 # include <boost/preprocessor/control/iif.hpp>
0020 #
0021 #
0022 #
0023 # define BOOST_PP_LIST_TO_TUPLE(list) \
0024 BOOST_PP_IIF \
0025 ( \
0026 BOOST_PP_LIST_IS_NIL(list), \
0027 BOOST_PP_LIST_TO_TUPLE_EMPTY, \
0028 BOOST_PP_LIST_TO_TUPLE_DO \
0029 ) \
0030 (list) \
0031
0032 # define BOOST_PP_LIST_TO_TUPLE_EMPTY(list)
0033 #
0034 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0035 # define BOOST_PP_LIST_TO_TUPLE_DO(list) (BOOST_PP_LIST_ENUM(list))
0036 # else
0037 # define BOOST_PP_LIST_TO_TUPLE_DO(list) BOOST_PP_LIST_TO_TUPLE_I(list)
0038 # define BOOST_PP_LIST_TO_TUPLE_I(list) (BOOST_PP_LIST_ENUM(list))
0039 # endif
0040 #
0041 #
0042 #
0043 # define BOOST_PP_LIST_TO_TUPLE_R(r, list) \
0044 BOOST_PP_IIF \
0045 ( \
0046 BOOST_PP_LIST_IS_NIL(list), \
0047 BOOST_PP_LIST_TO_TUPLE_R_EMPTY, \
0048 BOOST_PP_LIST_TO_TUPLE_R_DO \
0049 ) \
0050 (r, list) \
0051
0052 # define BOOST_PP_LIST_TO_TUPLE_R_EMPTY(r,list)
0053 #
0054 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0055 # define BOOST_PP_LIST_TO_TUPLE_R_DO(r, list) (BOOST_PP_LIST_ENUM_R(r, list))
0056 # else
0057 # define BOOST_PP_LIST_TO_TUPLE_R_DO(r, list) BOOST_PP_LIST_TO_TUPLE_R_I(r, list)
0058 # define BOOST_PP_LIST_TO_TUPLE_R_I(r, list) (BOOST_PP_LIST_ENUM_R(r, list))
0059 # endif
0060 #
0061 # endif