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_DEQUE_TIE_01272013_1401)
|
|
|
|
#define FUSION_DEQUE_TIE_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_deque_tie.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
|
|
|
|
{
|
|
|
|
struct void_;
|
2011-09-17 05:52:59 +00:00
|
|
|
|
2007-10-21 00:52:09 +00:00
|
|
|
namespace result_of
|
|
|
|
{
|
2013-01-27 07:17:01 +00:00
|
|
|
template <typename ...T>
|
|
|
|
struct deque_tie
|
2007-10-21 00:52:09 +00:00
|
|
|
{
|
2013-01-27 07:17:01 +00:00
|
|
|
typedef deque<T&...> type;
|
2007-10-21 00:52:09 +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<T&...>
|
|
|
|
deque_tie(T&... arg)
|
2007-10-21 00:52:09 +00:00
|
|
|
{
|
2013-01-27 07:17:01 +00:00
|
|
|
return deque<T&...>(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
|
|
|
|
2013-01-27 07:17:01 +00:00
|
|
|
#endif
|
2013-01-27 10:14:40 +00:00
|
|
|
#endif
|
|
|
|
|