1 /*=============================================================================
2     Copyright (c) 2001-2006 Joel de Guzman
3     Copyright (c) 2005 Eric Niebler
4     Copyright (c) 2007 Dan Marsden
5 
6     Distributed under the Boost Software License, Version 1.0. (See accompanying
7     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 ==============================================================================*/
9 #if !defined(FUSION_ANY_05052005_1230)
10 #define FUSION_ANY_05052005_1230
11 
12 #include <boost/fusion/support/category_of.hpp>
13 #include <boost/fusion/algorithm/query/detail/any.hpp>
14 
15 namespace boost { namespace fusion
16 {
17     namespace result_of
18     {
19         template <typename Sequence, typename F>
20         struct any
21         {
22             typedef bool type;
23         };
24     }
25 
26     template <typename Sequence, typename F>
27     inline bool
any(Sequence const & seq,F f)28     any(Sequence const& seq, F f)
29     {
30         return detail::any(seq, f, typename traits::category_of<Sequence>::type());
31     }
32 }}
33 
34 #endif
35 
36