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_SEQ_HPP)
8#define BOOST_VMD_IS_SEQ_HPP
9
10#include <boost/vmd/detail/setup.hpp>
11
12#if BOOST_PP_VARIADICS
13
14#include <boost/vmd/detail/is_seq.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_SEQ(sequence)
26
27 \brief Determines if a sequence is a Boost PP seq.
28
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.
31
32 sequence = a possible Boost PP seq
33
34 returns = 1 if it a seq, else returns 0.
35
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.
40
41*/
42
43#define BOOST_VMD_IS_SEQ(sequence) \
44 BOOST_VMD_DETAIL_IS_SEQ(sequence) \
45/**/
46
47/** \def BOOST_VMD_IS_SEQ_D(d,sequence)
48
49 \brief Determines if a sequence is a Boost PP seq. Re-entrant version.
50
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.
53
54 d = The next available BOOST_PP_WHILE iteration.
55 sequence = a possible Boost PP seq
56
57 returns = 1 if it a seq, else returns 0.
58
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.
63
64*/
65
66#define BOOST_VMD_IS_SEQ_D(d,sequence) \
67 BOOST_VMD_DETAIL_IS_SEQ_D(d,sequence) \
68/**/
69
70#endif /* BOOST_PP_VARIADICS */
71#endif /* BOOST_VMD_IS_SEQ_HPP */
72

source code of boost/boost/vmd/is_seq.hpp