2 // (C) Copyright Edward Diener 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_VMD_SEQ_HPP)
8 #define BOOST_VMD_IS_VMD_SEQ_HPP
10 #include <boost/vmd/detail/setup.hpp>
12 #if BOOST_PP_VARIADICS
14 #include <boost/preprocessor/control/iif.hpp>
15 #include <boost/vmd/identity.hpp>
16 #include <boost/vmd/is_empty.hpp>
17 #include <boost/vmd/is_seq.hpp>
21 The succeeding comments in this file are in doxygen format.
28 /** \def BOOST_VMD_IS_VMD_SEQ(sequence)
30 \brief Determines if a sequence is a VMD seq.
32 The macro checks that the sequence is a VMD seq.
33 A VMD seq, which may be a Boost PP seq or emptiness, is a superset of a Boost PP seq.
34 It returns 1 if it is a VMD seq, else if returns 0.
36 sequence = a possible Boost PP seq
38 returns = 1 if it a VMD seq, else returns 0.
42 #define BOOST_VMD_IS_VMD_SEQ(sequence) \
43 BOOST_VMD_IDENTITY_RESULT \
47 BOOST_VMD_IS_EMPTY(sequence), \
48 BOOST_VMD_IDENTITY(1), \
55 #endif /* BOOST_PP_VARIADICS */
56 #endif /* BOOST_VMD_IS_VMD_SEQ_HPP */