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
|
|
|
|
|
2012-04-07 09:56:07 +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)
|
|
|
|
==============================================================================*/
|
|
|
|
#if !defined(BOOST_FUSION_DEQUE_BEGIN_IMPL_09122006_2034)
|
|
|
|
#define BOOST_FUSION_DEQUE_BEGIN_IMPL_09122006_2034
|
|
|
|
|
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_iterator.hpp>
|
|
|
|
|
2012-04-07 10:57:10 +00:00
|
|
|
namespace boost { namespace fusion
|
|
|
|
{
|
2007-10-21 00:52:09 +00:00
|
|
|
struct deque_tag;
|
|
|
|
|
2012-04-07 09:56:07 +00:00
|
|
|
namespace extension
|
2007-10-21 00:52:09 +00:00
|
|
|
{
|
|
|
|
template<typename T>
|
|
|
|
struct begin_impl;
|
2012-04-07 09:56:07 +00:00
|
|
|
|
2007-10-21 00:52:09 +00:00
|
|
|
template<>
|
|
|
|
struct begin_impl<deque_tag>
|
|
|
|
{
|
|
|
|
template<typename Sequence>
|
|
|
|
struct apply
|
|
|
|
{
|
2014-11-30 03:58:20 +09:00
|
|
|
typedef
|
|
|
|
deque_iterator<Sequence, (Sequence::next_down::value + 1)>
|
2012-04-07 09:56:07 +00:00
|
|
|
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 type(seq);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
|
|
|
|
#endif
|