]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | |
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). | |
6 | ||
7 | #if !defined(BOOST_VMD_IS_PARENS_EMPTY_HPP) | |
8 | #define BOOST_VMD_IS_PARENS_EMPTY_HPP | |
9 | ||
10 | #include <boost/vmd/detail/setup.hpp> | |
11 | ||
12 | #if BOOST_PP_VARIADICS | |
13 | ||
14 | #include <boost/vmd/detail/is_empty_tuple.hpp> | |
15 | ||
16 | /* | |
17 | ||
18 | The succeeding comments in this file are in doxygen format. | |
19 | ||
20 | */ | |
21 | ||
22 | /** \file | |
23 | */ | |
24 | ||
25 | /** \def BOOST_VMD_IS_PARENS_EMPTY(sequence) | |
26 | ||
27 | \brief Determines if the sequence is a set of parens with no data. | |
28 | ||
29 | sequence = a VMD sequence | |
30 | ||
31 | returns = 1 if the sequence is a set of parens with no data, | |
32 | else returns 0. | |
33 | ||
34 | A set of parens with no data may be: | |
35 | ||
36 | 1) a tuple whose size is a single element which is empty | |
37 | ||
38 | or | |
39 | ||
40 | 2) a single element seq whose data is empty | |
41 | ||
42 | */ | |
43 | ||
44 | #define BOOST_VMD_IS_PARENS_EMPTY(sequence) \ | |
45 | BOOST_VMD_DETAIL_IS_EMPTY_TUPLE(sequence) \ | |
46 | /**/ | |
47 | ||
48 | /** \def BOOST_VMD_IS_PARENS_EMPTY_D(d,sequence) | |
49 | ||
50 | \brief Determines if the sequence is a set of parens with no data. Re-entrant version. | |
51 | ||
52 | d = The next available BOOST_PP_WHILE iteration. | |
53 | sequence = a VMD sequence | |
54 | ||
55 | returns = 1 if the sequence is a set of parens with no data, | |
56 | else returns 0. | |
57 | ||
58 | A set of parens with no data may be: | |
59 | ||
60 | 1) a tuple whose size is a single element which is empty | |
61 | ||
62 | or | |
63 | ||
64 | 2) a single element seq whose data is empty | |
65 | ||
66 | */ | |
67 | ||
68 | #define BOOST_VMD_IS_PARENS_EMPTY_D(d,sequence) \ | |
69 | BOOST_VMD_DETAIL_IS_EMPTY_TUPLE_D(d,sequence) \ | |
70 | /**/ | |
71 | ||
72 | #endif /* BOOST_PP_VARIADICS */ | |
73 | #endif /* BOOST_VMD_IS_PARENS_EMPTY_HPP */ |