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