File indexing completed on 2025-01-18 09:49:14
0001 #
0002
0003
0004
0005
0006
0007
0008
0009 #
0010 #
0011 #
0012 # ifndef BOOST_PREPROCESSOR_SEQ_DETAIL_IS_EMPTY_HPP
0013 # define BOOST_PREPROCESSOR_SEQ_DETAIL_IS_EMPTY_HPP
0014 #
0015 # include <boost/preprocessor/config/config.hpp>
0016 # include <boost/preprocessor/arithmetic/dec.hpp>
0017 # include <boost/preprocessor/logical/bool.hpp>
0018 # include <boost/preprocessor/logical/compl.hpp>
0019 # include <boost/preprocessor/seq/size.hpp>
0020 #
0021
0022 #
0023 # define BOOST_PP_SEQ_DETAIL_IS_EMPTY(seq) \
0024 BOOST_PP_COMPL \
0025 ( \
0026 BOOST_PP_SEQ_DETAIL_IS_NOT_EMPTY(seq) \
0027 ) \
0028
0029 #
0030 # define BOOST_PP_SEQ_DETAIL_IS_EMPTY_SIZE(size) \
0031 BOOST_PP_COMPL \
0032 ( \
0033 BOOST_PP_SEQ_DETAIL_IS_NOT_EMPTY_SIZE(size) \
0034 ) \
0035
0036 #
0037 # define BOOST_PP_SEQ_DETAIL_IS_NOT_EMPTY(seq) \
0038 BOOST_PP_SEQ_DETAIL_IS_NOT_EMPTY_SIZE(BOOST_PP_SEQ_DETAIL_EMPTY_SIZE(seq)) \
0039
0040 #
0041 # define BOOST_PP_SEQ_DETAIL_IS_NOT_EMPTY_SIZE(size) \
0042 BOOST_PP_BOOL(size) \
0043
0044 #
0045 # define BOOST_PP_SEQ_DETAIL_EMPTY_SIZE(seq) \
0046 BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(seq (nil))) \
0047
0048 #
0049 # endif