1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
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_07162005_1030)
8 #define FUSION_VALUE_OF_IMPL_07162005_1030
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/mpl/apply.hpp>
12 #include <boost/fusion/iterator/value_of.hpp>
13 #include <boost/fusion/view/transform_view/detail/apply_transform_result.hpp>
15 namespace boost { namespace fusion
17 struct transform_view_iterator_tag;
18 struct transform_view_iterator2_tag;
22 template <typename Tag>
27 struct value_of_impl<transform_view_iterator_tag>
29 template <typename Iterator>
33 result_of::value_of<typename Iterator::first_type>::type
36 typedef detail::apply_transform_result<typename Iterator::transform_type> transform_type;
37 typedef typename mpl::apply<transform_type, value_type>::type type;
43 struct value_of_impl<transform_view_iterator2_tag>
45 template <typename Iterator>
49 result_of::value_of<typename Iterator::first1_type>::type
52 result_of::value_of<typename Iterator::first2_type>::type
55 typedef detail::apply_transform_result<typename Iterator::transform_type> transform_type;
56 typedef typename mpl::apply<transform_type, value1_type, value2_type>::type type;