2007-10-21 00:52:09 +00:00
|
|
|
/*=============================================================================
|
2013-01-27 07:17:01 +00:00
|
|
|
Copyright (c) 2001-2013 Joel de Guzman
|
2007-10-21 00:52:09 +00:00
|
|
|
|
2011-09-17 05:52:59 +00:00
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
2007-10-21 00:52:09 +00:00
|
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
==============================================================================*/
|
2013-01-27 07:17:01 +00:00
|
|
|
#if !defined(FUSION_MAKE_DEQUE_01272013_1401)
|
|
|
|
#define FUSION_MAKE_DEQUE_01272013_1401
|
2007-10-21 00:52:09 +00:00
|
|
|
|
2014-01-09 17:58:06 -08:00
|
|
|
#include <boost/fusion/support/config.hpp>
|
2007-10-21 00:52:09 +00:00
|
|
|
#include <boost/fusion/container/deque/deque.hpp>
|
|
|
|
|
2013-01-27 07:17:01 +00:00
|
|
|
#if !defined(BOOST_FUSION_HAS_VARIADIC_DEQUE)
|
|
|
|
# include <boost/fusion/container/generation/detail/pp_make_deque.hpp>
|
2011-09-17 05:52:59 +00:00
|
|
|
#else
|
|
|
|
|
2013-01-27 07:17:01 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// C++11 variadic interface
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2011-09-17 05:52:59 +00:00
|
|
|
|
2013-01-27 07:17:01 +00:00
|
|
|
#include <boost/fusion/support/detail/as_fusion_element.hpp>
|
2011-09-17 05:52:59 +00:00
|
|
|
|
2007-10-21 00:52:09 +00:00
|
|
|
namespace boost { namespace fusion
|
|
|
|
{
|
|
|
|
namespace result_of
|
|
|
|
{
|
2013-01-27 07:17:01 +00:00
|
|
|
template <typename ...T>
|
|
|
|
struct make_deque
|
2007-10-21 00:52:09 +00:00
|
|
|
{
|
2014-10-26 17:21:11 +09:00
|
|
|
typedef deque<typename detail::as_fusion_element<T>::type...> type;
|
2007-10-21 00:52:09 +00:00
|
|
|
};
|
|
|
|
}
|
2011-09-17 05:52:59 +00:00
|
|
|
|
2013-01-27 07:17:01 +00:00
|
|
|
template <typename ...T>
|
2015-03-03 02:21:02 +09:00
|
|
|
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
2013-01-27 07:17:01 +00:00
|
|
|
inline deque<typename detail::as_fusion_element<T>::type...>
|
|
|
|
make_deque(T const&... arg)
|
2007-10-21 00:52:09 +00:00
|
|
|
{
|
2013-01-27 07:17:01 +00:00
|
|
|
return deque<typename detail::as_fusion_element<T>::type...>(arg...);
|
2007-10-21 00:52:09 +00:00
|
|
|
}
|
2013-01-27 07:17:01 +00:00
|
|
|
}}
|
2007-10-21 00:52:09 +00:00
|
|
|
|
2007-11-05 02:10:42 +00:00
|
|
|
#endif
|
2013-01-27 10:14:40 +00:00
|
|
|
#endif
|
|
|
|
|