value_of_impl.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_07202005_0900)
  7. #define FUSION_VALUE_OF_IMPL_07202005_0900
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/fusion/iterator/value_of.hpp>
  10. #include <boost/fusion/iterator/prior.hpp>
  11. namespace boost { namespace fusion
  12. {
  13. struct reverse_view_iterator_tag;
  14. namespace extension
  15. {
  16. template <typename Tag>
  17. struct value_of_impl;
  18. template <>
  19. struct value_of_impl<reverse_view_iterator_tag>
  20. {
  21. template <typename Iterator>
  22. struct apply
  23. {
  24. typedef typename
  25. result_of::value_of<
  26. typename result_of::prior<
  27. typename Iterator::first_type
  28. >::type
  29. >::type
  30. type;
  31. };
  32. };
  33. }
  34. }}
  35. #endif