]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*============================================================================= |
2 | Copyright (c) 2001-2013 Joel de Guzman | |
3 | ||
4 | Distributed under the Boost Software License, Version 1.0. (See accompanying | |
5 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
6 | ==============================================================================*/ | |
7 | #if !defined(FUSION_MAKE_DEQUE_01272013_1401) | |
8 | #define FUSION_MAKE_DEQUE_01272013_1401 | |
9 | ||
10 | #include <boost/fusion/support/config.hpp> | |
11 | #include <boost/fusion/container/deque/deque.hpp> | |
12 | ||
13 | #if !defined(BOOST_FUSION_HAS_VARIADIC_DEQUE) | |
14 | # include <boost/fusion/container/generation/detail/pp_make_deque.hpp> | |
15 | #else | |
16 | ||
17 | /////////////////////////////////////////////////////////////////////////////// | |
18 | // C++11 variadic interface | |
19 | /////////////////////////////////////////////////////////////////////////////// | |
20 | ||
21 | #include <boost/fusion/support/detail/as_fusion_element.hpp> | |
22 | ||
23 | namespace boost { namespace fusion | |
24 | { | |
25 | namespace result_of | |
26 | { | |
27 | template <typename ...T> | |
28 | struct make_deque | |
29 | { | |
30 | typedef deque<typename detail::as_fusion_element<T>::type...> type; | |
31 | }; | |
32 | } | |
33 | ||
34 | template <typename ...T> | |
35 | BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
36 | inline deque<typename detail::as_fusion_element<T>::type...> | |
37 | make_deque(T const&... arg) | |
38 | { | |
39 | return deque<typename detail::as_fusion_element<T>::type...>(arg...); | |
40 | } | |
41 | }} | |
42 | ||
43 | #endif | |
44 | #endif | |
45 |