category_of_impl.hpp 978 B

12345678910111213141516171819202122232425262728293031323334
  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(BOOST_FUSION_CATEGORY_OF_IMPL_20060223_2037)
  8. #define BOOST_FUSION_CATEGORY_OF_IMPL_20060223_2037
  9. #include <boost/fusion/support/category_of.hpp>
  10. namespace example
  11. {
  12. struct example_sequence_tag;
  13. }
  14. namespace boost { namespace fusion {
  15. namespace extension
  16. {
  17. template<>
  18. struct category_of_impl<example::example_sequence_tag>
  19. {
  20. template<typename Sequence>
  21. struct apply
  22. {
  23. struct type : random_access_traversal_tag, associative_tag {};
  24. };
  25. };
  26. }
  27. }}
  28. #endif