fix doc example typo
[boost.git] / boost / fusion / algorithm / query / none.hpp
blobf31f4c9cf7ba7c064267247891bc48f07a6eab1c
1 /*=============================================================================
2 Copyright (c) 2001-2006 Joel de Guzman
3 Copyright (c) 2007 Dan Marsden
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
11 #include <boost/fusion/algorithm/query/any.hpp>
13 namespace boost { namespace fusion
15 namespace result_of
17 template <typename Sequence, typename F>
18 struct none
20 typedef bool type;
24 template <typename Sequence, typename F>
25 inline bool
26 none(Sequence const& seq, F f)
28 return !fusion::any(seq, f);
32 #endif