1 /*=============================================================================
2 Copyright (c) 2009 Christopher Schmidt
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 #ifndef BOOST_FUSION_CONTAINER_MAP_DETAIL_DEREF_DATA_IMPL_HPP
9 #define BOOST_FUSION_CONTAINER_MAP_DETAIL_DEREF_DATA_IMPL_HPP
11 #include <boost/fusion/support/config.hpp>
12 #include <boost/fusion/iterator/value_of.hpp>
13 #include <boost/fusion/iterator/deref.hpp>
14 #include <boost/fusion/support/detail/access.hpp>
15 #include <boost/type_traits/is_const.hpp>
16 #include <boost/mpl/if.hpp>
18 namespace boost { namespace fusion { namespace extension
21 struct deref_data_impl;
24 struct deref_data_impl<map_iterator_tag>
26 template <typename It>
29 typedef typename result_of::value_of<It>::type::second_type data;
33 is_const<typename It::seq_type>
34 , typename detail::cref_result<data>::type
35 , typename detail::ref_result<data>::type
39 BOOST_FUSION_GPU_ENABLED
43 return fusion::deref(it).second;