/Src/Dependencies/Boost/boost/fusion/container/vector/detail/value_of_impl.hpp

http://hadesmem.googlecode.com/ · C++ Header · 37 lines · 26 code · 5 blank · 6 comment · 0 complexity · 990f767633fbe8f29513b324b77a2ea6 MD5 · raw file

  1. /*=============================================================================
  2. Copyright (c) 2001-2006 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/mpl/at.hpp>
  9. namespace boost { namespace fusion
  10. {
  11. struct vector_iterator_tag;
  12. namespace extension
  13. {
  14. template <typename Tag>
  15. struct value_of_impl;
  16. template <>
  17. struct value_of_impl<vector_iterator_tag>
  18. {
  19. template <typename Iterator>
  20. struct apply
  21. {
  22. typedef typename Iterator::vector vector;
  23. typedef typename Iterator::index index;
  24. typedef typename mpl::at<
  25. typename vector::types, index>::type
  26. type;
  27. };
  28. };
  29. }
  30. }}
  31. #endif