Chris@16: /*============================================================================= Chris@16: Copyright (c) 2009 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_CONTAINER_SET_DETAIL_DEREF_IMPL_HPP Chris@16: #define BOOST_FUSION_CONTAINER_SET_DETAIL_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: result_of::at< Chris@16: typename mpl::if_< Chris@16: is_const Chris@16: , typename It::seq_type::storage_type const Chris@16: , typename It::seq_type::storage_type Chris@16: >::type Chris@16: , typename It::index 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 ::boost::fusion::at(it.seq->get_data()); Chris@16: } Chris@16: }; Chris@16: }; Chris@16: }}} Chris@16: Chris@16: #endif