PageRenderTime 29ms CodeModel.GetById 22ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/Src/Dependencies/Boost/boost/fusion/algorithm/query/any.hpp

http://hadesmem.googlecode.com/
C++ Header | 35 lines | 22 code | 5 blank | 8 comment | 0 complexity | af6e56ffc36780db12620527aaea7979 MD5 | raw file
 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
15namespace 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
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