2007-10-21 00:52:09 +00:00
|
|
|
/*=============================================================================
|
2012-04-07 07:34:00 +00:00
|
|
|
Copyright (c) 2005-2012 Joel de Guzman
|
2007-10-21 00:52:09 +00:00
|
|
|
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(FUSION_CONVERT_IMPL_20061213_2207)
|
|
|
|
#define FUSION_CONVERT_IMPL_20061213_2207
|
|
|
|
|
2014-01-09 17:58:06 -08:00
|
|
|
#include <boost/fusion/support/config.hpp>
|
2013-01-27 07:17:01 +00:00
|
|
|
#include <boost/fusion/container/deque/convert.hpp>
|
2007-10-21 00:52:09 +00:00
|
|
|
#include <boost/fusion/container/deque/deque.hpp>
|
|
|
|
#include <boost/fusion/sequence/intrinsic/begin.hpp>
|
|
|
|
#include <boost/fusion/sequence/intrinsic/size.hpp>
|
|
|
|
|
|
|
|
namespace boost { namespace fusion
|
|
|
|
{
|
|
|
|
struct deque_tag;
|
|
|
|
|
2013-01-27 07:17:01 +00:00
|
|
|
namespace result_of
|
|
|
|
{
|
|
|
|
template <typename Sequence>
|
|
|
|
struct as_deque;
|
|
|
|
}
|
|
|
|
|
2007-10-21 00:52:09 +00:00
|
|
|
namespace extension
|
|
|
|
{
|
|
|
|
template <typename T>
|
|
|
|
struct convert_impl;
|
|
|
|
|
|
|
|
template <>
|
|
|
|
struct convert_impl<deque_tag>
|
|
|
|
{
|
|
|
|
template <typename Sequence>
|
|
|
|
struct apply
|
|
|
|
{
|
2013-01-27 07:17:01 +00:00
|
|
|
typedef result_of::as_deque<Sequence> gen;
|
|
|
|
typedef typename gen::type type;
|
2014-01-09 17:58:06 -08:00
|
|
|
BOOST_FUSION_GPU_ENABLED
|
2007-10-21 00:52:09 +00:00
|
|
|
static type call(Sequence& seq)
|
|
|
|
{
|
2013-01-27 07:17:01 +00:00
|
|
|
return gen::call(seq);
|
2007-10-21 00:52:09 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
|
|
|
|
#endif
|