Chris@16: /*============================================================================= Chris@16: Copyright (c) 2010 Christopher Schmidt Chris@16: Chris@16: Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: ==============================================================================*/ Chris@16: Chris@16: #ifndef BOOST_FUSION_ADAPTED_ARRAY_DEREF_IMPL_HPP Chris@16: #define BOOST_FUSION_ADAPTED_ARRAY_DEREF_IMPL_HPP Chris@16: Chris@101: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: namespace boost { namespace fusion { namespace extension Chris@16: { Chris@16: template Chris@16: struct deref_impl; Chris@16: Chris@16: template <> Chris@16: struct deref_impl Chris@16: { Chris@16: template Chris@16: struct apply Chris@16: { Chris@16: typedef typename Chris@16: add_reference< Chris@16: typename remove_extent::type Chris@16: >::type Chris@16: type; Chris@16: Chris@101: BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@16: static type Chris@16: call(It const& it) Chris@16: { Chris@16: return (*it.seq)[It::index::value]; Chris@16: } Chris@16: }; Chris@16: }; Chris@16: }}} Chris@16: Chris@16: #endif