summaryrefslogtreecommitdiff
path: root/boost/vmd/is_type.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/vmd/is_type.hpp')
-rw-r--r--boost/vmd/is_type.hpp73
1 files changed, 73 insertions, 0 deletions
diff --git a/boost/vmd/is_type.hpp b/boost/vmd/is_type.hpp
new file mode 100644
index 0000000000..8ddfdcd033
--- /dev/null
+++ b/boost/vmd/is_type.hpp
@@ -0,0 +1,73 @@
+
+// (C) Copyright Edward Diener 2011-2015
+// Use, modification and distribution are subject to the Boost Software License,
+// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt).
+
+#if !defined(BOOST_VMD_IS_TYPE_HPP)
+#define BOOST_VMD_IS_TYPE_HPP
+
+#include <boost/vmd/detail/setup.hpp>
+
+#if BOOST_PP_VARIADICS
+
+#include <boost/vmd/detail/is_type.hpp>
+
+/*
+
+ The succeeding comments in this file are in doxygen format.
+
+*/
+
+/** \file
+*/
+
+/** \def BOOST_VMD_IS_TYPE(sequence)
+
+ \brief Tests whether a sequence is a VMD type.
+
+ sequence = a possible VMD type
+
+ returns = 1 if the sequence is a VMD type,
+ 0 if it is not.
+
+ If the sequence is not a VMD data type this macro could lead to
+ a preprocessor error. This is because the macro
+ uses preprocessor concatenation to determine if the sequence
+ is an identifier once it is determined that the sequence does not
+ start with parentheses. If the data being concatenated would
+ lead to an invalid preprocessor token the compiler can issue
+ a preprocessor error.
+
+*/
+
+#define BOOST_VMD_IS_TYPE(sequence) \
+ BOOST_VMD_DETAIL_IS_TYPE(sequence) \
+/**/
+
+/** \def BOOST_VMD_IS_TYPE_D(d,sequence)
+
+ \brief Tests whether a sequence is a VMD type. Re-entrant version.
+
+ d = The next available BOOST_PP_WHILE iteration.
+ sequence = a possible VMD type
+
+ returns = 1 if the sequence is a VMD type,
+ 0 if it is not.
+
+ If the sequence is not a VMD data type this macro could lead to
+ a preprocessor error. This is because the macro
+ uses preprocessor concatenation to determine if the sequence
+ is an identifier once it is determined that the sequence does not
+ start with parentheses. If the data being concatenated would
+ lead to an invalid preprocessor token the compiler can issue
+ a preprocessor error.
+
+*/
+
+#define BOOST_VMD_IS_TYPE_D(d,sequence) \
+ BOOST_VMD_DETAIL_IS_TYPE_D(d,sequence) \
+/**/
+
+#endif /* BOOST_PP_VARIADICS */
+#endif /* BOOST_VMD_IS_TYPE_HPP */