File indexing completed on 2025-12-17 10:02:12
0001 #
0002
0003
0004
0005
0006
0007
0008
0009 #
0010 #
0011 #
0012 # ifndef BOOST_PREPROCESSOR_TUPLE_REMOVE_HPP
0013 # define BOOST_PREPROCESSOR_TUPLE_REMOVE_HPP
0014 #
0015 # include <boost/preprocessor/config/config.hpp>
0016 # include <boost/preprocessor/array/remove.hpp>
0017 # include <boost/preprocessor/array/to_tuple.hpp>
0018 # include <boost/preprocessor/comparison/greater.hpp>
0019 # include <boost/preprocessor/control/iif.hpp>
0020 # include <boost/preprocessor/tuple/size.hpp>
0021 # include <boost/preprocessor/tuple/to_array.hpp>
0022 #
0023 #
0024 #
0025 # define BOOST_PP_TUPLE_REMOVE(tuple, i) \
0026 BOOST_PP_IIF \
0027 ( \
0028 BOOST_PP_GREATER(BOOST_PP_TUPLE_SIZE(tuple),1), \
0029 BOOST_PP_TUPLE_REMOVE_EXEC, \
0030 BOOST_PP_TUPLE_REMOVE_RETURN \
0031 ) \
0032 (tuple, i) \
0033
0034 #
0035 # define BOOST_PP_TUPLE_REMOVE_EXEC(tuple, i) \
0036 BOOST_PP_ARRAY_TO_TUPLE(BOOST_PP_ARRAY_REMOVE(BOOST_PP_TUPLE_TO_ARRAY(tuple), i)) \
0037
0038 #
0039 # define BOOST_PP_TUPLE_REMOVE_RETURN(tuple, i) tuple
0040 #
0041 #
0042 #
0043 # define BOOST_PP_TUPLE_REMOVE_D(d, tuple, i) \
0044 BOOST_PP_IIF \
0045 ( \
0046 BOOST_PP_GREATER_D(d, BOOST_PP_TUPLE_SIZE(tuple), 1), \
0047 BOOST_PP_TUPLE_REMOVE_D_EXEC, \
0048 BOOST_PP_TUPLE_REMOVE_D_RETURN \
0049 ) \
0050 (d, tuple, i) \
0051
0052 #
0053 # define BOOST_PP_TUPLE_REMOVE_D_EXEC(d, tuple, i) \
0054 BOOST_PP_ARRAY_TO_TUPLE(BOOST_PP_ARRAY_REMOVE_D(d, BOOST_PP_TUPLE_TO_ARRAY(tuple), i)) \
0055
0056 #
0057 # define BOOST_PP_TUPLE_REMOVE_D_RETURN(d, tuple, i) tuple
0058 #
0059 # endif