source: NonGTP/Boost/boost/spirit/fusion/iterator/detail/transform_view_iterator/value_traits.hpp @ 857

Revision 857, 1.4 KB checked in by igarcia, 18 years ago (diff)
Line 
1/*=============================================================================
2    Copyright (c) 2003 Joel de Guzman
3    Copyright (c) 2004 Peder Holt
4
5    Use, modification and distribution is subject to the Boost Software
6    License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7    http://www.boost.org/LICENSE_1_0.txt)
8==============================================================================*/
9#if !defined(FUSION_ITERATOR_DETAIL_TRANSFORM_VIEW_ITERATOR_VALUE_TRAITS_HPP)
10#define FUSION_ITERATOR_DETAIL_TRANSFORM_VIEW_ITERATOR_VALUE_TRAITS_HPP
11
12#include <boost/spirit/fusion/detail/config.hpp>
13#include <boost/spirit/fusion/iterator/detail/adapt_value_traits.hpp>
14#include <boost/spirit/fusion/iterator/value_of.hpp>
15
16namespace boost { namespace fusion
17{
18    struct transform_view_iterator_tag;
19
20    namespace meta
21    {
22        template <typename Tag>
23        struct value_impl;
24
25        template <>
26        struct value_impl<transform_view_iterator_tag>
27        {
28            template <typename Iterator>
29            struct apply
30            {
31                typedef typename
32                    meta::value_of<typename Iterator::first_type>::type
33                value_type;
34
35                typedef typename Iterator::transform_type transform_type;
36                typedef typename fusion_apply1<transform_type,value_type>::type type;
37            };
38        };
39    }
40}}
41
42#endif
43
44
Note: See TracBrowser for help on using the repository browser.