value_of_impl.hpp 1020 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*=============================================================================
  2. Copyright (c) 2007 Tobias Schwinger
  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(BOOST_FUSION_REPETITIVE_VIEW_VALUE_OF_IMPL_HPP_INCLUDED)
  7. #define BOOST_FUSION_REPETITIVE_VIEW_VALUE_OF_IMPL_HPP_INCLUDED
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/fusion/iterator/value_of.hpp>
  10. namespace boost { namespace fusion
  11. {
  12. struct repetitive_view_iterator_tag;
  13. namespace extension
  14. {
  15. template<typename Tag>
  16. struct value_of_impl;
  17. template<>
  18. struct value_of_impl<repetitive_view_iterator_tag>
  19. {
  20. template<typename Iterator>
  21. struct apply
  22. : result_of::value_of<typename Iterator::pos_type>
  23. { };
  24. };
  25. }
  26. }}
  27. #endif