/*============================================================================= Copyright (c) 2001-2006 Joel de Guzman 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_FACADE_09252006_1011) #define FUSION_ITERATOR_FACADE_09252006_1011 #include #include #include #include #include namespace boost { namespace fusion { struct iterator_facade_tag; template struct iterator_facade : iterator_base { typedef iterator_facade_tag fusion_tag; typedef Derived derived_type; typedef Category category; // default implementation template struct equal_to // default implementation : is_same< typename I1::derived_type , typename I2::derived_type > {}; // default implementation template struct advance : mpl::if_c< (N::value > 0) , advance_detail::forward , advance_detail::backward >::type { BOOST_MPL_ASSERT_NOT((traits::is_random_access)); }; }; }} #endif