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

http://hadesmem.googlecode.com/ · C++ Header · 35 lines · 22 code · 5 blank · 8 comment · 0 complexity · af6e56ffc36780db12620527aaea7979 MD5 · raw file

  1. /*=============================================================================
  2. Copyright (c) 2001-2006 Joel de Guzman
  3. Copyright (c) 2005 Eric Niebler
  4. 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(FUSION_ANY_05052005_1230)
  9. #define FUSION_ANY_05052005_1230
  10. #include <boost/fusion/support/category_of.hpp>
  11. #include <boost/fusion/algorithm/query/detail/any.hpp>
  12. namespace boost { namespace fusion
  13. {
  14. namespace result_of
  15. {
  16. template <typename Sequence, typename F>
  17. struct any
  18. {
  19. typedef bool type;
  20. };
  21. }
  22. template <typename Sequence, typename F>
  23. inline bool
  24. any(Sequence const& seq, F f)
  25. {
  26. return detail::any(seq, f, typename traits::category_of<Sequence>::type());
  27. }
  28. }}
  29. #endif