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_TUPLE_HPP) |
8 | #define BOOST_VMD_IS_TUPLE_HPP |
9 | |
10 | #include <boost/vmd/detail/setup.hpp> |
11 | |
12 | #if BOOST_PP_VARIADICS |
13 | |
14 | #include <boost/vmd/detail/is_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_TUPLE(sequence) |
26 | |
27 | \brief Tests whether a sequence is a Boost PP tuple. |
28 | |
29 | The macro checks to see if a sequence is a Boost PP tuple. |
30 | A Boost PP tuple is preprocessor tokens enclosed by a set of parentheses |
31 | with no preprocessing tokens before or after the parentheses. |
32 | |
33 | sequence = a possible tuple |
34 | |
35 | returns = 1 if the sequence is a Boost PP tuple. |
36 | 0 if it is not. |
37 | |
38 | */ |
39 | |
40 | #define BOOST_VMD_IS_TUPLE(sequence) \ |
41 | BOOST_VMD_DETAIL_IS_TUPLE(sequence) \ |
42 | /**/ |
43 | |
44 | #endif /* BOOST_PP_VARIADICS */ |
45 | #endif /* BOOST_VMD_IS_TUPLE_HPP */ |
46 | |