is_array.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // (C) Copyright Edward Diener 2011-2015
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #if !defined(BOOST_VMD_DETAIL_IS_ARRAY_HPP)
  6. #define BOOST_VMD_DETAIL_IS_ARRAY_HPP
  7. #include <boost/preprocessor/control/iif.hpp>
  8. #include <boost/vmd/identity.hpp>
  9. #include <boost/vmd/is_tuple.hpp>
  10. #include <boost/vmd/detail/is_array_common.hpp>
  11. #define BOOST_VMD_DETAIL_IS_ARRAY(vseq) \
  12. BOOST_VMD_IDENTITY_RESULT \
  13. ( \
  14. BOOST_PP_IIF \
  15. ( \
  16. BOOST_VMD_IS_TUPLE(vseq), \
  17. BOOST_VMD_DETAIL_IS_ARRAY_SYNTAX, \
  18. BOOST_VMD_IDENTITY(0) \
  19. ) \
  20. (vseq) \
  21. ) \
  22. /**/
  23. #define BOOST_VMD_DETAIL_IS_ARRAY_D(d,vseq) \
  24. BOOST_VMD_IDENTITY_RESULT \
  25. ( \
  26. BOOST_PP_IIF \
  27. ( \
  28. BOOST_VMD_IS_TUPLE(vseq), \
  29. BOOST_VMD_DETAIL_IS_ARRAY_SYNTAX_D, \
  30. BOOST_VMD_IDENTITY(0) \
  31. ) \
  32. (d,vseq) \
  33. ) \
  34. /**/
  35. #endif /* BOOST_VMD_DETAIL_IS_ARRAY_HPP */