1 /*=============================================================================
2 Copyright (c) 2010 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_ADAPTED_ARRAY_DEREF_IMPL_HPP
9 #define BOOST_FUSION_ADAPTED_ARRAY_DEREF_IMPL_HPP
11 #include <boost/fusion/support/config.hpp>
12 #include <boost/type_traits/add_reference.hpp>
13 #include <boost/type_traits/remove_extent.hpp>
15 namespace boost { namespace fusion { namespace extension
21 struct deref_impl<po_array_iterator_tag>
23 template <typename It>
28 typename remove_extent<typename It::seq_type>::type
32 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
36 return (*it.seq)[It::index::value];