/*============================================================================= 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_FIND_IF_05052005_1108) #define FUSION_FIND_IF_05052005_1108 #include #include #include #include #include namespace boost { namespace fusion { namespace result_of { template struct find_if { typedef typename detail::static_find_if< typename result_of::begin::type , typename result_of::end::type , Pred >::type type; }; } template inline typename lazy_disable_if< is_const , result_of::find_if >::type find_if(Sequence& seq) { typedef detail::static_find_if< typename result_of::begin::type , typename result_of::end::type , Pred > filter; return filter::call(fusion::begin(seq)); } template inline typename result_of::find_if::type const find_if(Sequence const& seq) { typedef detail::static_find_if< typename result_of::begin::type , typename result_of::end::type , Pred > filter; return filter::call(fusion::begin(seq)); } }} #endif