Files

46 lines
1.2 KiB
C++
Raw Permalink Normal View History

2007-10-21 00:52:09 +00:00
/*=============================================================================
2011-09-16 05:30:23 +00:00
Copyright (c) 2001-2011 Joel de Guzman
2009-10-25 22:59:54 +00:00
Copyright (c) 2009 Christopher Schmidt
2007-10-21 00:52:09 +00:00
2009-10-25 22:59:54 +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)
==============================================================================*/
2009-10-25 22:59:54 +00:00
#ifndef BOOST_FUSION_CONTAINER_SET_DETAIL_BEGIN_IMPL_HPP
#define BOOST_FUSION_CONTAINER_SET_DETAIL_BEGIN_IMPL_HPP
2007-10-21 00:52:09 +00:00
2014-01-09 17:58:06 -08:00
#include <boost/fusion/support/config.hpp>
2009-10-25 22:59:54 +00:00
#include <boost/fusion/iterator/basic_iterator.hpp>
namespace boost { namespace fusion { namespace extension
2007-10-21 00:52:09 +00:00
{
2009-10-25 22:59:54 +00:00
template <typename>
struct begin_impl;
2007-10-21 00:52:09 +00:00
2009-10-25 22:59:54 +00:00
template <>
struct begin_impl<set_tag>
2007-10-21 00:52:09 +00:00
{
2009-10-25 22:59:54 +00:00
template <typename Seq>
struct apply
2007-10-21 00:52:09 +00:00
{
2009-10-25 22:59:54 +00:00
typedef
basic_iterator<
set_iterator_tag
, typename Seq::category
, Seq
, 0
>
type;
2015-03-03 02:21:02 +09:00
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
2009-10-25 22:59:54 +00:00
static type
call(Seq& seq)
2007-10-21 00:52:09 +00:00
{
2009-10-25 22:59:54 +00:00
return type(seq,0);
}
2007-10-21 00:52:09 +00:00
};
2009-10-25 22:59:54 +00:00
};
}}}
2007-10-21 00:52:09 +00:00
#endif