/*============================================================================= Copyright (c) 2022 Denis Mikhailov 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) ==============================================================================*/ #ifndef BOOST_FUSION_TRANSFORM_VIEW_DEREF_DATA_IMPL_JAN_9_2022_0354PM #define BOOST_FUSION_TRANSFORM_VIEW_DEREF_DATA_IMPL_JAN_9_2022_0354PM #include #include #include #include #include #include #include #include #include #include namespace boost { namespace fusion { struct transform_view_iterator_tag; struct transform_view_iterator2_tag; namespace extension { template struct deref_data_impl; // Unary Version template<> struct deref_data_impl { template struct apply { typedef typename result_of::deref::type value_type; typedef typename Iterator::transform_type F; typedef typename boost::result_of::type transformed_type; typedef typename boost::remove_reference::type transformed_type_unref; typedef typename boost::remove_const::type transformed_type_unconst; typedef typename transformed_type_unconst::second_type raw_type; typedef typename boost::mpl::if_< is_reference , typename boost::mpl::if_< is_const , typename boost::add_reference::type>::type , typename boost::add_reference::type >::type , raw_type >::type type; BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static type call(Iterator const& i) { return i.f(fusion::deref(i.first)).second; } }; }; // Binary Version is not supported with Associative Sequence } }} #endif