Files

37 lines
1.0 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
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_ITERATOR_BASE_05042005_1008)
#define FUSION_ITERATOR_BASE_05042005_1008
2015-03-03 02:21:02 +09:00
#include <boost/config.hpp>
2014-01-09 17:58:06 -08:00
#include <boost/fusion/support/config.hpp>
2007-10-21 00:52:09 +00:00
namespace boost { namespace fusion
{
struct iterator_root {};
template <typename Iterator>
struct iterator_base : iterator_root
{
2015-03-03 02:21:02 +09:00
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
2007-10-21 00:52:09 +00:00
Iterator const&
2015-03-03 02:21:02 +09:00
cast() const BOOST_NOEXCEPT
2007-10-21 00:52:09 +00:00
{
return static_cast<Iterator const&>(*this);
}
2015-03-03 02:21:02 +09:00
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
2007-10-21 00:52:09 +00:00
Iterator&
2015-03-03 02:21:02 +09:00
cast() BOOST_NOEXCEPT
2007-10-21 00:52:09 +00:00
{
return static_cast<Iterator&>(*this);
}
};
}}
#endif