1 /*=============================================================================
2     Copyright (c) 2001-2011 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/config.hpp>
13 #include <boost/fusion/support/category_of.hpp>
14 #include <boost/fusion/algorithm/query/detail/any.hpp>
15 
16 namespace boost { namespace fusion
17 {
18     namespace result_of
19     {
20         template <typename Sequence, typename F>
21         struct any
22         {
23             typedef bool type;
24         };
25     }
26 
27     template <typename Sequence, typename F>
28     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
29     inline bool
any(Sequence const & seq,F f)30     any(Sequence const& seq, F f)
31     {
32         return detail::any(seq, f, typename traits::category_of<Sequence>::type());
33     }
34 }}
35 
36 #endif
37 
38