123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- #if !defined(BOOST_VMD_IS_EMPTY_HPP)
- #define BOOST_VMD_IS_EMPTY_HPP
- #include <boost/vmd/detail/setup.hpp>
- #if BOOST_PP_VARIADICS
- #include <boost/preprocessor/punctuation/is_begin_parens.hpp>
- #include <boost/vmd/detail/is_empty.hpp>
- #if BOOST_VMD_MSVC_V8
- #define BOOST_VMD_IS_EMPTY(sequence) \
- BOOST_VMD_DETAIL_IS_EMPTY_IIF \
- ( \
- BOOST_PP_IS_BEGIN_PARENS \
- ( \
- sequence \
- ) \
- ) \
- ( \
- BOOST_VMD_DETAIL_IS_EMPTY_GEN_ZERO, \
- BOOST_VMD_DETAIL_IS_EMPTY_PROCESS \
- ) \
- (sequence) \
- #else
- # if defined(__cplusplus) && __cplusplus > 201703L
- #include <boost/preprocessor/variadic/has_opt.hpp>
- #include <boost/preprocessor/facilities/is_empty.hpp>
- #define BOOST_VMD_IS_EMPTY(...) \
- BOOST_VMD_DETAIL_IS_EMPTY_IIF \
- ( \
- BOOST_PP_VARIADIC_HAS_OPT() \
- ) \
- ( \
- BOOST_PP_IS_EMPTY_OPT, \
- BOOST_VMD_IS_EMPTY_NO_OPT \
- ) \
- (__VA_ARGS__) \
- # else
- #define BOOST_VMD_IS_EMPTY(...) \
- BOOST_VMD_IS_EMPTY_NO_OPT(__VA_ARGS__) \
- # endif
- #define BOOST_VMD_IS_EMPTY_NO_OPT(...) \
- BOOST_VMD_DETAIL_IS_EMPTY_IIF \
- ( \
- BOOST_PP_IS_BEGIN_PARENS \
- ( \
- __VA_ARGS__ \
- ) \
- ) \
- ( \
- BOOST_VMD_DETAIL_IS_EMPTY_GEN_ZERO, \
- BOOST_VMD_DETAIL_IS_EMPTY_PROCESS \
- ) \
- (__VA_ARGS__) \
- #endif
- #endif
- #endif
|