Files

42 lines
1.2 KiB
C++
Raw Permalink Normal View History

2010-02-22 22:55:54 +00:00
/*=============================================================================
Copyright (c) 2009-2010 Christopher Schmidt
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
2010-02-25 20:10:37 +00:00
#ifndef BOOST_FUSION_ADAPTED_STRUCT_DETAIL_DEREF_IMPL_HPP
#define BOOST_FUSION_ADAPTED_STRUCT_DETAIL_DEREF_IMPL_HPP
2010-02-22 22:55:54 +00:00
namespace boost { namespace fusion { namespace extension
{
template <typename>
struct deref_impl;
template <>
struct deref_impl<struct_iterator_tag>
{
template <typename It>
struct apply
{
2010-02-25 20:10:37 +00:00
typedef typename
access::struct_member<
2010-02-25 20:10:37 +00:00
typename remove_const<typename It::seq_type>::type
, It::index::value
>::template apply<typename It::seq_type>
impl;
2010-02-22 22:55:54 +00:00
2010-02-25 20:10:37 +00:00
typedef typename impl::type type;
2010-02-22 22:55:54 +00:00
2015-03-03 02:21:02 +09:00
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type
2010-02-25 20:10:37 +00:00
call(It const& it)
{
return impl::call(*it.seq);
}
2010-02-22 22:55:54 +00:00
};
};
}}}
#endif