File indexing completed on 2025-01-18 09:49:57
0001 #
0002
0003
0004
0005
0006
0007
0008
0009 #
0010 #
0011 #
0012 # ifndef BOOST_PREPROCESSOR_TUPLE_POP_FRONT_HPP
0013 # define BOOST_PREPROCESSOR_TUPLE_POP_FRONT_HPP
0014 #
0015 # include <boost/preprocessor/config/config.hpp>
0016 # include <boost/preprocessor/array/pop_front.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 #
0026 # define BOOST_PP_TUPLE_POP_FRONT(tuple) \
0027 BOOST_PP_IIF \
0028 ( \
0029 BOOST_PP_GREATER(BOOST_PP_TUPLE_SIZE(tuple),1), \
0030 BOOST_PP_TUPLE_POP_FRONT_EXEC, \
0031 BOOST_PP_TUPLE_POP_FRONT_RETURN \
0032 ) \
0033 (tuple) \
0034
0035 #
0036 # define BOOST_PP_TUPLE_POP_FRONT_EXEC(tuple) \
0037 BOOST_PP_ARRAY_TO_TUPLE(BOOST_PP_ARRAY_POP_FRONT(BOOST_PP_TUPLE_TO_ARRAY(tuple))) \
0038
0039 #
0040 # define BOOST_PP_TUPLE_POP_FRONT_RETURN(tuple) tuple
0041 #
0042 #
0043 #
0044 # define BOOST_PP_TUPLE_POP_FRONT_Z(z, tuple) \
0045 BOOST_PP_IIF \
0046 ( \
0047 BOOST_PP_GREATER(BOOST_PP_TUPLE_SIZE(tuple),1), \
0048 BOOST_PP_TUPLE_POP_FRONT_Z_EXEC, \
0049 BOOST_PP_TUPLE_POP_FRONT_Z_RETURN \
0050 ) \
0051 (z, tuple) \
0052
0053 #
0054 # define BOOST_PP_TUPLE_POP_FRONT_Z_EXEC(z, tuple) \
0055 BOOST_PP_ARRAY_TO_TUPLE(BOOST_PP_ARRAY_POP_FRONT_Z(z, BOOST_PP_TUPLE_TO_ARRAY(tuple))) \
0056
0057 #
0058 # define BOOST_PP_TUPLE_POP_FRONT_Z_RETURN(z, tuple) tuple
0059 #
0060 # endif