is_tuple.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_IS_TUPLE_HPP)
  6. #define BOOST_VMD_IS_TUPLE_HPP
  7. #include <boost/vmd/detail/setup.hpp>
  8. #if BOOST_PP_VARIADICS
  9. #include <boost/vmd/detail/is_tuple.hpp>
  10. /*
  11. The succeeding comments in this file are in doxygen format.
  12. */
  13. /** \file
  14. */
  15. /** \def BOOST_VMD_IS_TUPLE(sequence)
  16. \brief Tests whether a sequence is a Boost PP tuple.
  17. The macro checks to see if a sequence is a Boost PP tuple.
  18. A Boost PP tuple is preprocessor tokens enclosed by a set of parentheses
  19. with no preprocessing tokens before or after the parentheses.
  20. sequence = a possible tuple
  21. returns = 1 if the sequence is a Boost PP tuple.
  22. 0 if it is not.
  23. */
  24. #define BOOST_VMD_IS_TUPLE(sequence) \
  25. BOOST_VMD_DETAIL_IS_TUPLE(sequence) \
  26. /**/
  27. #endif /* BOOST_PP_VARIADICS */
  28. #endif /* BOOST_VMD_IS_TUPLE_HPP */