File indexing completed on 2026-09-14 08:59:29
0001 #
0002
0003
0004
0005
0006
0007
0008
0009 0010 ">#
0011 #
0012 0013 ">#
0014 # ifndef BOOST_PREPROCESSOR_TUPLE_POP_BACK_HPP
0015 # define BOOST_PREPROCESSOR_TUPLE_POP_BACK_HPP
0016 0017 ">#
0018 # include <boost/preprocessor/config/config.hpp>
0019 # include <boost/preprocessor/array/pop_back.hpp>
0020 # include <boost/preprocessor/array/to_tuple.hpp>
0021 # include <boost/preprocessor/comparison/greater.hpp>
0022 # include <boost/preprocessor/control/iif.hpp>
0023 # include <boost/preprocessor/tuple/size.hpp>
0024 # include <boost/preprocessor/tuple/to_array.hpp>
0025 0026 ">#
0027 #
0028 0029 ">#
0030 # define BOOST_PP_TUPLE_POP_BACK(tuple) \
0031 BOOST_PP_IIF \
0032 ( \
0033 BOOST_PP_GREATER(BOOST_PP_TUPLE_SIZE(tuple),1), \
0034 BOOST_PP_TUPLE_POP_BACK_EXEC, \
0035 BOOST_PP_TUPLE_POP_BACK_RETURN \
0036 ) \
0037 (tuple) \
0038
0039 0040 ">#
0041 # define BOOST_PP_TUPLE_POP_BACK_EXEC(tuple) \
0042 BOOST_PP_ARRAY_TO_TUPLE(BOOST_PP_ARRAY_POP_BACK(BOOST_PP_TUPLE_TO_ARRAY(tuple))) \
0043
0044 0045 ">#
0046 # define BOOST_PP_TUPLE_POP_BACK_RETURN(tuple) tuple
0047 0048 ">#
0049 #
0050 0051 ">#
0052 # define BOOST_PP_TUPLE_POP_BACK_Z(z, tuple) \
0053 BOOST_PP_IIF \
0054 ( \
0055 BOOST_PP_GREATER(BOOST_PP_TUPLE_SIZE(tuple),1), \
0056 BOOST_PP_TUPLE_POP_BACK_Z_EXEC, \
0057 BOOST_PP_TUPLE_POP_BACK_Z_RETURN \
0058 ) \
0059 (z, tuple) \
0060
0061 0062 ">#
0063 # define BOOST_PP_TUPLE_POP_BACK_Z_EXEC(z, tuple) \
0064 BOOST_PP_ARRAY_TO_TUPLE(BOOST_PP_ARRAY_POP_BACK_Z(z, BOOST_PP_TUPLE_TO_ARRAY(tuple))) \
0065
0066 0067 ">#
0068 # define BOOST_PP_TUPLE_POP_BACK_Z_RETURN(z, tuple) tuple
0069 0070 ">#
0071 # endif