PageRenderTime 22ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://hadesmem.googlecode.com/
C++ Header | 33 lines | 21 code | 5 blank | 7 comment | 0 complexity | 54df2984fbbefefae9b9edd12d72fd7e MD5 | raw file
 1/*=============================================================================
 2    Copyright (c) 2001-2006 Joel de Guzman
 3    Copyright (c) 2007 Dan Marsden
 4
 5    Distributed under the Boost Software License, Version 1.0. (See accompanying 
 6    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 7==============================================================================*/
 8#if !defined(BOOST_FUSION_NONE_07062005_1128)
 9#define BOOST_FUSION_NONE_07062005_1128
10
11#include <boost/fusion/algorithm/query/any.hpp>
12
13namespace boost { namespace fusion
14{
15    namespace result_of
16    {
17        template <typename Sequence, typename F>
18        struct none
19        {
20            typedef bool type;
21        };
22    }
23
24    template <typename Sequence, typename F>
25    inline bool
26    none(Sequence const& seq, F f)
27    {
28        return !fusion::any(seq, f);
29    }
30}}
31
32#endif
33