Imported Upstream version 1.49.0
[platform/upstream/boost.git] / boost / fusion / algorithm / query / find_if_fwd.hpp
1 /*=============================================================================
2     Copyright (c) 2011 Eric Niebler
3
4     Distributed under the Boost Software License, Version 1.0. (See accompanying 
5     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(BOOST_FUSION_FIND_IF_FWD_HPP_INCLUDED)
8 #define BOOST_FUSION_FIND_IF_FWD_HPP_INCLUDED
9
10 #include <boost/utility/enable_if.hpp>
11 #include <boost/type_traits/is_const.hpp>
12
13 // Forward declaration of find_if algorithm
14 namespace boost { namespace fusion
15 {
16     namespace result_of
17     {
18         template <typename Sequence, typename Pred>
19         struct find_if;
20     }
21
22     template <typename Pred, typename Sequence>
23     typename 
24         lazy_disable_if<
25             is_const<Sequence>
26           , result_of::find_if<Sequence, Pred>
27         >::type
28     find_if(Sequence& seq);
29
30     template <typename Pred, typename Sequence>
31     typename result_of::find_if<Sequence const, Pred>::type const
32     find_if(Sequence const& seq);
33 }}
34
35 #endif