/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Copyright (c) 2006 Dan Marsden 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_ADVANCE_IMPL_20061024_2021) #define FUSION_ADVANCE_IMPL_20061024_2021 #include #include #include #include namespace boost { namespace fusion { struct zip_view_iterator_tag; namespace detail { template struct poly_advance { template struct result; template struct result(It)> { typedef typename remove_reference::type it; typedef typename result_of::advance::type type; }; template typename result::type operator()(const It& it) const { return fusion::advance(it); } }; } namespace extension { template struct advance_impl; template<> struct advance_impl { template struct apply { typedef zip_view_iterator< typename result_of::transform >::type> type; static type call(It const& it) { return type( fusion::transform(it.iterators_, detail::poly_advance())); } }; }; } }} #endif