Chris@16: /////////////////////////////////////////////////////////////////////////////// Chris@16: // poly_function_traits.hpp Chris@16: // Contains specializations of poly_function_traits and as_mono_function Chris@16: // Chris@16: // Copyright 2008 Eric Niebler. Distributed under the Boost Chris@16: // Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: template Chris@16: struct poly_function_traits > Chris@16: { Chris@16: typedef typename PolyFun::template impl function_type; Chris@16: typedef typename function_type::result_type result_type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef typename PolyFun::template impl type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef PolyFun type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function Chris@16: : as_mono_function_impl::value> Chris@16: {}; Chris@16: Chris@16: template Chris@16: struct poly_function_traits > Chris@16: { Chris@16: typedef typename PolyFun::template impl function_type; Chris@16: typedef typename function_type::result_type result_type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef typename PolyFun::template impl type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef PolyFun type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function Chris@16: : as_mono_function_impl::value> Chris@16: {}; Chris@16: Chris@16: template Chris@16: struct poly_function_traits > Chris@16: { Chris@16: typedef typename PolyFun::template impl function_type; Chris@16: typedef typename function_type::result_type result_type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef typename PolyFun::template impl type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef PolyFun type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function Chris@16: : as_mono_function_impl::value> Chris@16: {}; Chris@16: Chris@16: template Chris@16: struct poly_function_traits > Chris@16: { Chris@16: typedef typename PolyFun::template impl function_type; Chris@16: typedef typename function_type::result_type result_type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef typename PolyFun::template impl type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef PolyFun type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function Chris@16: : as_mono_function_impl::value> Chris@16: {}; Chris@16: Chris@16: template Chris@16: struct poly_function_traits > Chris@16: { Chris@16: typedef typename PolyFun::template impl function_type; Chris@16: typedef typename function_type::result_type result_type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef typename PolyFun::template impl type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef PolyFun type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function Chris@16: : as_mono_function_impl::value> Chris@16: {}; Chris@16: Chris@16: template Chris@16: struct poly_function_traits > Chris@16: { Chris@16: typedef typename PolyFun::template impl function_type; Chris@16: typedef typename function_type::result_type result_type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef typename PolyFun::template impl type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef PolyFun type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function Chris@16: : as_mono_function_impl::value> Chris@16: {}; Chris@16: Chris@16: template Chris@16: struct poly_function_traits > Chris@16: { Chris@16: typedef typename PolyFun::template impl function_type; Chris@16: typedef typename function_type::result_type result_type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef typename PolyFun::template impl type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef PolyFun type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function Chris@16: : as_mono_function_impl::value> Chris@16: {}; Chris@16: Chris@16: template Chris@16: struct poly_function_traits > Chris@16: { Chris@16: typedef typename PolyFun::template impl function_type; Chris@16: typedef typename function_type::result_type result_type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef typename PolyFun::template impl type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef PolyFun type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function Chris@16: : as_mono_function_impl::value> Chris@16: {}; Chris@16: Chris@16: template Chris@16: struct poly_function_traits > Chris@16: { Chris@16: typedef typename PolyFun::template impl function_type; Chris@16: typedef typename function_type::result_type result_type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef typename PolyFun::template impl type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef PolyFun type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function Chris@16: : as_mono_function_impl::value> Chris@16: {}; Chris@16: Chris@16: template Chris@16: struct poly_function_traits > Chris@16: { Chris@16: typedef typename PolyFun::template impl function_type; Chris@16: typedef typename function_type::result_type result_type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef typename PolyFun::template impl type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function_impl Chris@16: { Chris@16: typedef PolyFun type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct as_mono_function Chris@16: : as_mono_function_impl::value> Chris@16: {};