/*============================================================================= 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_VALUE_OF_IMPL_20060124_2147) #define FUSION_VALUE_OF_IMPL_20060124_2147 #include #include #include #include #include #include #include #include #include namespace boost { namespace fusion { struct zip_view_iterator_tag; namespace detail { struct poly_value_of { template struct result; template struct result : mpl::eval_if, mpl::identity, result_of::value_of > {}; // never called, but needed for decltype-based result_of (C++0x) #ifndef BOOST_NO_RVALUE_REFERENCES template typename result::type operator()(It&&) const; #endif }; } namespace extension { template struct value_of_impl; template<> struct value_of_impl { template struct apply { typedef typename result_of::transform< typename Iterator::iterators, detail::poly_value_of>::type values; typedef typename result_of::as_vector::type type; }; }; } }} #endif