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_ADT_HPP
0015 # define BOOST_PREPROCESSOR_LIST_ADT_HPP
0016 #
0017 # include <boost/preprocessor/config/config.hpp>
0018 # include <boost/preprocessor/detail/is_binary.hpp>
0019 # include <boost/preprocessor/logical/compl.hpp>
0020 # include <boost/preprocessor/tuple/eat.hpp>
0021 #
0022 #
0023 #
0024 # define BOOST_PP_LIST_CONS(head, tail) (head, tail)
0025 #
0026 #
0027 #
0028 # define BOOST_PP_LIST_NIL BOOST_PP_NIL
0029 #
0030 #
0031 #
0032 # define BOOST_PP_LIST_FIRST(list) BOOST_PP_LIST_FIRST_D(list)
0033 #
0034 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
0035 # define BOOST_PP_LIST_FIRST_D(list) BOOST_PP_LIST_FIRST_I list
0036 # else
0037 # define BOOST_PP_LIST_FIRST_D(list) BOOST_PP_LIST_FIRST_I ## list
0038 # endif
0039 #
0040 # define BOOST_PP_LIST_FIRST_I(head, tail) head
0041 #
0042 #
0043 #
0044 # define BOOST_PP_LIST_REST(list) BOOST_PP_LIST_REST_D(list)
0045 #
0046 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
0047 # define BOOST_PP_LIST_REST_D(list) BOOST_PP_LIST_REST_I list
0048 # else
0049 # define BOOST_PP_LIST_REST_D(list) BOOST_PP_LIST_REST_I ## list
0050 # endif
0051 #
0052 # define BOOST_PP_LIST_REST_I(head, tail) tail
0053 #
0054 #
0055 #
0056 # if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_BCC()
0057 # define BOOST_PP_LIST_IS_CONS(list) BOOST_PP_LIST_IS_CONS_D(list)
0058 # define BOOST_PP_LIST_IS_CONS_D(list) BOOST_PP_LIST_IS_CONS_ ## list
0059 # define BOOST_PP_LIST_IS_CONS_(head, tail) 1
0060 # define BOOST_PP_LIST_IS_CONS_BOOST_PP_NIL 0
0061 # else
0062 # define BOOST_PP_LIST_IS_CONS(list) BOOST_PP_IS_BINARY(list)
0063 # endif
0064 #
0065 #
0066 #
0067 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_BCC()
0068 # define BOOST_PP_LIST_IS_NIL(list) BOOST_PP_COMPL(BOOST_PP_IS_BINARY(list))
0069 # else
0070 # define BOOST_PP_LIST_IS_NIL(list) BOOST_PP_COMPL(BOOST_PP_LIST_IS_CONS(list))
0071 # endif
0072 #
0073 # endif