/*============================================================================= Copyright (c) 2005-2012 Joel de Guzman Copyright (c) 2005-2006 Dan Marsden 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) ==============================================================================*/ #if !defined(BOOST_FUSION_DEQUE_DETAIL_CPP11_DEQUE_KEYED_VALUES_07042012_1901) #define BOOST_FUSION_DEQUE_DETAIL_CPP11_DEQUE_KEYED_VALUES_07042012_1901 #include #include #include #include namespace boost { namespace fusion { namespace detail { template struct keyed_element; template struct deque_keyed_values_impl; template struct deque_keyed_values_impl { typedef mpl::int_<(N::value + 1)> next_index; typedef typename deque_keyed_values_impl::type tail; typedef keyed_element type; BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static type construct( typename detail::call_param::type head , typename detail::call_param::type... tail) { return type( head , deque_keyed_values_impl::construct(tail...) ); } #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) template BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED static type forward_(Head_&& head, Tail_&&... tail) { return type( BOOST_FUSION_FWD_ELEM(Head_, head) , deque_keyed_values_impl:: forward_(BOOST_FUSION_FWD_ELEM(Tail_, tail)...) ); } #endif }; struct nil_keyed_element; template struct deque_keyed_values_impl { typedef nil_keyed_element type; BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static type construct() { return type(); } #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static type forward_() { return type(); } #endif }; template struct deque_keyed_values : deque_keyed_values_impl, Elements...> {}; }}} #endif