value_of_impl.hpp 978 B

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