2 // (C) Copyright Edward Diener 2011-2015
3 // Use, modification and distribution are subject to the Boost Software License,
4 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt).
7 #if !defined(BOOST_VMD_IS_PARENS_EMPTY_HPP)
8 #define BOOST_VMD_IS_PARENS_EMPTY_HPP
10 #include <boost/vmd/detail/setup.hpp>
12 #if BOOST_PP_VARIADICS
14 #include <boost/vmd/detail/is_empty_tuple.hpp>
18 The succeeding comments in this file are in doxygen format.
25 /** \def BOOST_VMD_IS_PARENS_EMPTY(sequence)
27 \brief Determines if the sequence is a set of parens with no data.
29 sequence = a VMD sequence
31 returns = 1 if the sequence is a set of parens with no data,
34 A set of parens with no data may be:
36 1) a tuple whose size is a single element which is empty
40 2) a single element seq whose data is empty
44 #define BOOST_VMD_IS_PARENS_EMPTY(sequence) \
45 BOOST_VMD_DETAIL_IS_EMPTY_TUPLE(sequence) \
48 /** \def BOOST_VMD_IS_PARENS_EMPTY_D(d,sequence)
50 \brief Determines if the sequence is a set of parens with no data. Re-entrant version.
52 d = The next available BOOST_PP_WHILE iteration.
53 sequence = a VMD sequence
55 returns = 1 if the sequence is a set of parens with no data,
58 A set of parens with no data may be:
60 1) a tuple whose size is a single element which is empty
64 2) a single element seq whose data is empty
68 #define BOOST_VMD_IS_PARENS_EMPTY_D(d,sequence) \
69 BOOST_VMD_DETAIL_IS_EMPTY_TUPLE_D(d,sequence) \
72 #endif /* BOOST_PP_VARIADICS */
73 #endif /* BOOST_VMD_IS_PARENS_EMPTY_HPP */