Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:02:16

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_PARENS_EMPTY_HPP)
0008 #define BOOST_VMD_IS_PARENS_EMPTY_HPP
0009 
0010 #include <boost/vmd/detail/setup.hpp>
0011 
0012 #if BOOST_PP_VARIADICS
0013 
0014 #include <boost/vmd/detail/is_empty_tuple.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_PARENS_EMPTY(sequence)
0026 
0027     \brief Determines if the sequence is a set of parens with no data.
0028 
0029     sequence = a VMD sequence
0030 
0031     returns = 1 if the sequence is a set of parens with no data,
0032               else returns 0.
0033               
0034   @code
0035   
0036     A set of parens with no data may be:
0037     
0038     1) a tuple whose size is a single element which is empty
0039     
0040                 or
0041                 
0042     2) a single element seq whose data is empty
0043     
0044   @endcode
0045   
0046 */
0047 
0048 #define BOOST_VMD_IS_PARENS_EMPTY(sequence) \
0049     BOOST_VMD_DETAIL_IS_EMPTY_TUPLE(sequence) \
0050 /**/
0051 
0052 /** \def BOOST_VMD_IS_PARENS_EMPTY_D(d,sequence)
0053 
0054     \brief Determines if the sequence is a set of parens with no data. Re-entrant version.
0055 
0056     d        = The next available BOOST_PP_WHILE iteration. <br/>
0057     sequence = a VMD sequence
0058 
0059     returns = 1 if the sequence is a set of parens with no data,
0060               else returns 0.
0061               
0062   @code
0063   
0064     A set of parens with no data may be:
0065     
0066     1) a tuple whose size is a single element which is empty
0067     
0068                 or
0069                 
0070     2) a single element seq whose data is empty
0071     
0072   @endcode
0073   
0074 */
0075 
0076 #define BOOST_VMD_IS_PARENS_EMPTY_D(d,sequence) \
0077     BOOST_VMD_DETAIL_IS_EMPTY_TUPLE_D(d,sequence) \
0078 /**/
0079 
0080 #endif /* BOOST_PP_VARIADICS */
0081 #endif /* BOOST_VMD_IS_PARENS_EMPTY_HPP */