1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
3 Copyright (c) 2005 Eric Niebler
4 Copyright (c) 2007 Dan Marsden
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
12 #include <boost/fusion/support/config.hpp>
13 #include <boost/fusion/support/category_of.hpp>
14 #include <boost/fusion/algorithm/query/detail/any.hpp>
16 namespace boost { namespace fusion
20 template <typename Sequence, typename F>
27 template <typename Sequence, typename F>
28 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
30 any(Sequence const& seq, F f)
32 return detail::any(seq, f, typename traits::category_of<Sequence>::type());