Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:31:09

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003     Copyright (c) 2005 Eric Niebler
0004     Copyright (c) 2007 Dan Marsden
0005 
0006     Distributed under the Boost Software License, Version 1.0. (See accompanying 
0007     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0008 ==============================================================================*/
0009 #if !defined(FUSION_ANY_05052005_1230)
0010 #define FUSION_ANY_05052005_1230
0011 
0012 #include <boost/fusion/support/config.hpp>
0013 #include <boost/fusion/support/category_of.hpp>
0014 #include <boost/fusion/algorithm/query/detail/any.hpp>
0015 
0016 namespace boost { namespace fusion
0017 {
0018     namespace result_of
0019     {
0020         template <typename Sequence, typename F>
0021         struct any
0022         {
0023             typedef bool type;
0024         };
0025     }
0026 
0027     template <typename Sequence, typename F>
0028     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0029     inline bool
0030     any(Sequence const& seq, F f)
0031     {
0032         return detail::any(seq, f, typename traits::category_of<Sequence>::type());
0033     }
0034 }}
0035 
0036 #endif
0037