Chris@16: /*============================================================================= Chris@16: Copyright (c) 2009 Hartmut Kaiser 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: #if !defined(BOOST_FUSION_NVIEW_AT_IMPL_SEP_24_2009_0225PM) Chris@16: #define BOOST_FUSION_NVIEW_AT_IMPL_SEP_24_2009_0225PM Chris@16: Chris@101: #include Chris@16: #include Chris@16: Chris@101: namespace boost { namespace fusion Chris@16: { Chris@16: struct nview_tag; Chris@16: Chris@16: namespace extension Chris@16: { Chris@16: template Chris@16: struct at_impl; Chris@16: Chris@16: template<> Chris@16: struct at_impl Chris@16: { Chris@16: template Chris@16: struct apply Chris@16: { Chris@16: typedef typename Sequence::sequence_type sequence_type; Chris@16: typedef typename Sequence::index_type index_type; Chris@16: Chris@16: typedef typename result_of::at::type index; Chris@16: typedef typename result_of::at::type type; Chris@16: Chris@101: BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@101: static type Chris@16: call(Sequence& seq) Chris@16: { Chris@16: return fusion::at(seq.seq); Chris@16: } Chris@16: }; Chris@16: }; Chris@16: } Chris@16: Chris@16: }} Chris@16: Chris@16: #endif