Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:38

0001 
0002 //  (C) Copyright Edward Diener 2011-2015
0003 //  Use, modification and distribution are subject to the Boost Software License,
0004 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0005 //  http://www.boost.org/LICENSE_1_0.txt).
0006 
0007 #if !defined(BOOST_VMD_IS_SEQ_HPP)
0008 #define BOOST_VMD_IS_SEQ_HPP
0009 
0010 #include <boost/vmd/detail/setup.hpp>
0011 
0012 #if BOOST_PP_VARIADICS
0013 
0014 #include <boost/vmd/detail/is_seq.hpp>
0015 
0016 /*
0017 
0018   The succeeding comments in this file are in doxygen format.
0019 
0020 */
0021 
0022 /** \file
0023 */
0024 
0025 /** \def BOOST_VMD_IS_SEQ(sequence)
0026 
0027     \brief Determines if a sequence is a Boost PP seq.
0028 
0029     The macro checks that the sequence is a Boost PP seq.
0030     It returns 1 if it is a seq, else if returns 0.
0031     
0032     sequence = a possible Boost PP seq
0033 
0034     returns = 1 if it a seq, else returns 0.
0035     
0036     A single set of parentheses, with a single element, 
0037     is parsed as a tuple and not a seq. To be parsed as
0038     a seq the input needs to be more than one consecutive
0039     sets of parentheses, each with a single element of data.
0040     
0041 */
0042 
0043 #define BOOST_VMD_IS_SEQ(sequence) \
0044     BOOST_VMD_DETAIL_IS_SEQ(sequence) \
0045 /**/
0046 
0047 /** \def BOOST_VMD_IS_SEQ_D(d,sequence)
0048 
0049     \brief Determines if a sequence is a Boost PP seq. Re-entrant version.
0050 
0051     The macro checks that the sequence is a Boost PP seq.
0052     It returns 1 if it is a seq, else if returns 0.
0053     
0054     d        = The next available BOOST_PP_WHILE iteration. <br/>
0055     sequence = a possible Boost PP seq
0056 
0057     returns = 1 if it a seq, else returns 0.
0058     
0059     A single set of parentheses, with a single element, 
0060     is parsed as a tuple and not a seq. To be parsed as
0061     a seq the input needs to be more than one consecutive
0062     sets of parentheses, each with a single element of data.
0063     
0064 */
0065 
0066 #define BOOST_VMD_IS_SEQ_D(d,sequence) \
0067     BOOST_VMD_DETAIL_IS_SEQ_D(d,sequence) \
0068 /**/
0069 
0070 #endif /* BOOST_PP_VARIADICS */
0071 #endif /* BOOST_VMD_IS_SEQ_HPP */