Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:34:43

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 #if !defined(FUSION_ITERATOR_BASE_05042005_1008)
0008 #define FUSION_ITERATOR_BASE_05042005_1008
0009 
0010 #include <boost/config.hpp>
0011 #include <boost/fusion/support/config.hpp>
0012 
0013 namespace boost { namespace fusion
0014 {
0015     struct iterator_root {};
0016 
0017     template <typename Iterator>
0018     struct iterator_base : iterator_root
0019     {
0020         BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0021         Iterator const&
0022         cast() const BOOST_NOEXCEPT
0023         {
0024             return static_cast<Iterator const&>(*this);
0025         }
0026 
0027         BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0028         Iterator&
0029         cast() BOOST_NOEXCEPT
0030         {
0031             return static_cast<Iterator&>(*this);
0032         }
0033     };
0034 }}
0035 
0036 #endif