summaryrefslogtreecommitdiff
path: root/boost/vmd/detail/is_empty_array.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/vmd/detail/is_empty_array.hpp')
-rw-r--r--boost/vmd/detail/is_empty_array.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/boost/vmd/detail/is_empty_array.hpp b/boost/vmd/detail/is_empty_array.hpp
new file mode 100644
index 0000000000..d9ff9fdef0
--- /dev/null
+++ b/boost/vmd/detail/is_empty_array.hpp
@@ -0,0 +1,20 @@
+
+// (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_DETAIL_IS_EMPTY_ARRAY_HPP)
+#define BOOST_VMD_DETAIL_IS_EMPTY_ARRAY_HPP
+
+#include <boost/preprocessor/array/size.hpp>
+#include <boost/preprocessor/logical/not.hpp>
+
+#define BOOST_VMD_DETAIL_IS_EMPTY_ARRAY_SIZE(array) \
+ BOOST_PP_NOT \
+ ( \
+ BOOST_PP_ARRAY_SIZE(array) \
+ ) \
+/**/
+
+#endif /* BOOST_VMD_DETAIL_IS_EMPTY_ARRAY_HPP */