is_mpl_sequence.hpp 957 B

123456789101112131415161718192021222324252627
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Copyright (c) 2005-2006 Dan Marsden
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. ==============================================================================*/
  7. #if !defined(FUSION_DETAIL_IS_MPL_SEQUENCE_29122006_1105)
  8. #define FUSION_DETAIL_IS_MPL_SEQUENCE_29122006_1105
  9. #include <boost/fusion/support/config.hpp>
  10. #include <boost/fusion/support/detail/is_native_fusion_sequence.hpp>
  11. #include <boost/mpl/is_sequence.hpp>
  12. #include <boost/mpl/and.hpp>
  13. #include <boost/mpl/not.hpp>
  14. namespace boost { namespace fusion { namespace detail
  15. {
  16. template <typename T>
  17. struct is_mpl_sequence
  18. : mpl::and_<
  19. mpl::not_<is_native_fusion_sequence<T> >
  20. , mpl::is_sequence<T> >
  21. {};
  22. }}}
  23. #endif