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_LIST_HPP)
8 #define BOOST_VMD_IS_LIST_HPP
10 #include <boost/vmd/detail/setup.hpp>
12 #if BOOST_PP_VARIADICS
14 #include <boost/vmd/detail/is_list.hpp>
18 The succeeding comments in this file are in doxygen format.
25 /** \def BOOST_VMD_IS_LIST(sequence)
27 \brief Determines if a sequence is a Boost pplib list.
29 The macro checks that the sequence is a pplib list.
30 It returns 1 if it is a list, else if returns 0.
32 sequence = input as a possible Boost PP list.
34 returns = 1 if it a list, else returns 0.
36 The macro will generate a preprocessing error if the input
37 is in the form of a list but its end-of-list marker, instead
38 of being an identifier, is a preprocessor token which VMD cannot parse,
39 as in the example '(anything,&BOOST_PP_NIL)' which is a valid tuple but
44 #define BOOST_VMD_IS_LIST(sequence) \
45 BOOST_VMD_DETAIL_IS_LIST(sequence) \
48 /** \def BOOST_VMD_IS_LIST_D(d,sequence)
50 \brief Determines if a sequence is a Boost pplib list. Re-entrant version.
52 The macro checks that the sequence is a pplib list.
53 It returns 1 if it is a list, else if returns 0.
55 d = The next available BOOST_PP_WHILE iteration.
56 sequence = input as a possible Boost PP list.
58 returns = 1 if it a list, else returns 0.
60 The macro will generate a preprocessing error if the input
61 is in the form of a list but its end-of-list marker, instead
62 of being an identifier, is a preprocessor token which VMD cannot parse,
63 as in the example '(anything,&BOOST_PP_NIL)' which is a valid tuple but
68 #define BOOST_VMD_IS_LIST_D(d,sequence) \
69 BOOST_VMD_DETAIL_IS_LIST_D(d,sequence) \
72 #endif /* BOOST_PP_VARIADICS */
73 #endif /* BOOST_VMD_IS_LIST_HPP */