/*============================================================================= Copyright (c) 2014-2015 Kohei Takahashi 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 FUSION_AS_SET_11062014_2121 #define FUSION_AS_SET_11062014_2121 #include #include /////////////////////////////////////////////////////////////////////////////// // Without variadics, we will use the PP version /////////////////////////////////////////////////////////////////////////////// #if !defined(BOOST_FUSION_HAS_VARIADIC_SET) # include #else /////////////////////////////////////////////////////////////////////////////// // C++11 interface /////////////////////////////////////////////////////////////////////////////// #include #include #include #include #include #include namespace boost { namespace fusion { namespace detail { BOOST_FUSION_BARRIER_BEGIN template ::type> struct as_set; template struct as_set > { template struct apply { typedef set< typename result_of::value_of< typename result_of::advance_c::type >::type... > type; }; template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static typename apply::type call(Iterator const& i) { typedef apply gen; typedef typename gen::type result; return result(*advance_c(i)...); } }; BOOST_FUSION_BARRIER_END }}} #endif #endif