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_SEQ_HPP)
8 #define BOOST_VMD_IS_SEQ_HPP
10 #include <boost/vmd/detail/setup.hpp>
12 #if BOOST_PP_VARIADICS
14 #include <boost/vmd/detail/is_seq.hpp>
18 The succeeding comments in this file are in doxygen format.
25 /** \def BOOST_VMD_IS_SEQ(sequence)
27 \brief Determines if a sequence is a Boost PP seq.
29 The macro checks that the sequence is a Boost PP seq.
30 It returns 1 if it is a seq, else if returns 0.
32 sequence = a possible Boost PP seq
34 returns = 1 if it a seq, else returns 0.
36 A single set of parentheses, with a single element,
37 is parsed as a tuple and not a seq. To be parsed as
38 a seq the input needs to be more than one consecutive
39 sets of parentheses, each with a single element of data.
43 #define BOOST_VMD_IS_SEQ(sequence) \
44 BOOST_VMD_DETAIL_IS_SEQ(sequence) \
47 /** \def BOOST_VMD_IS_SEQ_D(d,sequence)
49 \brief Determines if a sequence is a Boost PP seq. Re-entrant version.
51 The macro checks that the sequence is a Boost PP seq.
52 It returns 1 if it is a seq, else if returns 0.
54 d = The next available BOOST_PP_WHILE iteration.
55 sequence = a possible Boost PP seq
57 returns = 1 if it a seq, else returns 0.
59 A single set of parentheses, with a single element,
60 is parsed as a tuple and not a seq. To be parsed as
61 a seq the input needs to be more than one consecutive
62 sets of parentheses, each with a single element of data.
66 #define BOOST_VMD_IS_SEQ_D(d,sequence) \
67 BOOST_VMD_DETAIL_IS_SEQ_D(d,sequence) \
70 #endif /* BOOST_PP_VARIADICS */
71 #endif /* BOOST_VMD_IS_SEQ_HPP */