Files

57 lines
1.6 KiB
C++
Raw Permalink Normal View History

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
Copyright (c) 2015 Kohei Takahashi
2007-10-21 00:52:09 +00:00
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/end.hpp>
2007-10-21 00:52:09 +00:00
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;
2015-03-03 02:21:02 +09:00
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
2007-10-21 00:52:09 +00:00
static type call(Sequence& seq)
{
return gen::call(fusion::begin(seq)
#if defined(BOOST_FUSION_HAS_VARIADIC_DEQUE)
, fusion::end(seq)
#endif
);
2007-10-21 00:52:09 +00:00
}
};
};
}
}}
#endif