value_of_impl.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #if !defined(FUSION_VALUE_OF_IMPL_05052005_1128)
  7. #define FUSION_VALUE_OF_IMPL_05052005_1128
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/fusion/container/vector/detail/value_at_impl.hpp>
  10. namespace boost { namespace fusion
  11. {
  12. struct vector_iterator_tag;
  13. namespace extension
  14. {
  15. template <typename Tag>
  16. struct value_of_impl;
  17. template <>
  18. struct value_of_impl<vector_iterator_tag>
  19. {
  20. template <typename Iterator>
  21. struct apply
  22. {
  23. typedef typename Iterator::vector vector;
  24. typedef typename Iterator::index index;
  25. typedef typename value_at_impl<vector_tag>::template apply<vector, index>::type type;
  26. };
  27. };
  28. }
  29. }}
  30. #endif