category_of_impl.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_CATEGORY_OF_IMPL_HPP
  9. #define BOOST_FUSION_ADAPTED_STRUCT_DETAIL_CATEGORY_OF_IMPL_HPP
  10. namespace boost { namespace fusion
  11. {
  12. namespace extension
  13. {
  14. template<typename>
  15. struct category_of_impl;
  16. template<>
  17. struct category_of_impl<struct_tag>
  18. {
  19. template<typename Seq>
  20. struct apply
  21. {
  22. typedef random_access_traversal_tag type;
  23. };
  24. };
  25. template<>
  26. struct category_of_impl<assoc_struct_tag>
  27. {
  28. template<typename Seq>
  29. struct apply
  30. {
  31. typedef assoc_struct_category type;
  32. };
  33. };
  34. }
  35. }}
  36. #endif