is_entire.hpp 759 B

1234567891011121314151617181920212223
  1. // (C) Copyright Edward Diener 2011-2015
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #if !defined(BOOST_VMD_DETAIL_IS_ENTIRE_HPP)
  6. #define BOOST_VMD_DETAIL_IS_ENTIRE_HPP
  7. #include <boost/preprocessor/logical/bitand.hpp>
  8. #include <boost/preprocessor/tuple/elem.hpp>
  9. #include <boost/vmd/is_empty.hpp>
  10. #include <boost/vmd/detail/not_empty.hpp>
  11. #define BOOST_VMD_DETAIL_IS_ENTIRE(tuple) \
  12. BOOST_PP_BITAND \
  13. ( \
  14. BOOST_VMD_DETAIL_NOT_EMPTY(BOOST_PP_TUPLE_ELEM(0,tuple)), \
  15. BOOST_VMD_IS_EMPTY(BOOST_PP_TUPLE_ELEM(1,tuple)) \
  16. ) \
  17. /**/
  18. #endif /* BOOST_VMD_DETAIL_IS_ENTIRE_HPP */