is_parens_empty.hpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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_IS_PARENS_EMPTY_HPP)
  6. #define BOOST_VMD_IS_PARENS_EMPTY_HPP
  7. #include <boost/vmd/detail/setup.hpp>
  8. #if BOOST_PP_VARIADICS
  9. #include <boost/vmd/detail/is_empty_tuple.hpp>
  10. /*
  11. The succeeding comments in this file are in doxygen format.
  12. */
  13. /** \file
  14. */
  15. /** \def BOOST_VMD_IS_PARENS_EMPTY(sequence)
  16. \brief Determines if the sequence is a set of parens with no data.
  17. sequence = a VMD sequence
  18. returns = 1 if the sequence is a set of parens with no data,
  19. else returns 0.
  20. @code
  21. A set of parens with no data may be:
  22. 1) a tuple whose size is a single element which is empty
  23. or
  24. 2) a single element seq whose data is empty
  25. @endcode
  26. */
  27. #define BOOST_VMD_IS_PARENS_EMPTY(sequence) \
  28. BOOST_VMD_DETAIL_IS_EMPTY_TUPLE(sequence) \
  29. /**/
  30. /** \def BOOST_VMD_IS_PARENS_EMPTY_D(d,sequence)
  31. \brief Determines if the sequence is a set of parens with no data. Re-entrant version.
  32. d = The next available BOOST_PP_WHILE iteration. <br/>
  33. sequence = a VMD sequence
  34. returns = 1 if the sequence is a set of parens with no data,
  35. else returns 0.
  36. @code
  37. A set of parens with no data may be:
  38. 1) a tuple whose size is a single element which is empty
  39. or
  40. 2) a single element seq whose data is empty
  41. @endcode
  42. */
  43. #define BOOST_VMD_IS_PARENS_EMPTY_D(d,sequence) \
  44. BOOST_VMD_DETAIL_IS_EMPTY_TUPLE_D(d,sequence) \
  45. /**/
  46. #endif /* BOOST_PP_VARIADICS */
  47. #endif /* BOOST_VMD_IS_PARENS_EMPTY_HPP */