/*============================================================================= Copyright (c) 2005-2013 Joel de Guzman 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_BUILD_DEQUE_02032013_1921) #define BOOST_FUSION_BUILD_DEQUE_02032013_1921 #if defined(BOOST_FUSION_HAS_VARIADIC_DEQUE) #error "C++03 only! This file should not have been included" #endif #include #include #include #include namespace boost { namespace fusion { namespace result_of { template struct as_deque { typedef typename detail::as_deque::value> gen; typedef typename gen:: template apply::type>::type type; }; } template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED inline typename result_of::as_deque::type as_deque(Sequence& seq) { typedef typename result_of::as_deque::gen gen; return gen::call(fusion::begin(seq)); } template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED inline typename result_of::as_deque::type as_deque(Sequence const& seq) { typedef typename result_of::as_deque::gen gen; return gen::call(fusion::begin(seq)); } }} #endif