1 /*=============================================================================
2 Copyright (c) 2009 Hartmut Kaiser
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 ==============================================================================*/
8 #if !defined(BOOST_FUSION_VALUE_OF_PRIOR_IMPL_SEP_24_2009_0158PM)
9 #define BOOST_FUSION_VALUE_OF_PRIOR_IMPL_SEP_24_2009_0158PM
11 #include <boost/fusion/support/config.hpp>
12 #include <boost/fusion/iterator/deref.hpp>
13 #include <boost/fusion/container/vector.hpp>
15 namespace boost { namespace fusion
17 struct nview_iterator_tag;
19 template <typename Sequence, typename Pos>
20 struct nview_iterator;
24 template <typename Tag>
28 struct value_of_impl<nview_iterator_tag>
30 template <typename Iterator>
33 typedef typename Iterator::first_type first_type;
34 typedef typename Iterator::sequence_type sequence_type;
36 typedef typename result_of::deref<first_type>::type index;
37 typedef typename result_of::at<
38 typename sequence_type::sequence_type, index>::type type;