is_sequence_impl.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Copyright (c) 2005-2006 Dan Marsden
  4. Copyright (c) 2009-2010 Christopher Schmidt
  5. Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. ==============================================================================*/
  8. #ifndef BOOST_FUSION_ADAPTED_STRUCT_DETAIL_IS_SEQUENCE_IMPL_HPP
  9. #define BOOST_FUSION_ADAPTED_STRUCT_DETAIL_IS_SEQUENCE_IMPL_HPP
  10. #include <boost/fusion/support/config.hpp>
  11. #include <boost/mpl/bool.hpp>
  12. namespace boost { namespace fusion { namespace extension
  13. {
  14. template<typename>
  15. struct is_sequence_impl;
  16. template<>
  17. struct is_sequence_impl<struct_tag>
  18. {
  19. template<typename Seq>
  20. struct apply
  21. : mpl::true_
  22. {};
  23. };
  24. template <>
  25. struct is_sequence_impl<assoc_struct_tag>
  26. : is_sequence_impl<struct_tag>
  27. {};
  28. }}}
  29. #endif