/Src/Dependencies/Boost/boost/fusion/algorithm/iteration/for_each.hpp

http://hadesmem.googlecode.com/ · C++ Header · 43 lines · 28 code · 8 blank · 7 comment · 0 complexity · 73385906106ff9ba4054aff22f04938f MD5 · raw file

  1. /*=============================================================================
  2. Copyright (c) 2001-2007 Joel de Guzman
  3. Copyright (c) 2007 Dan Marsden
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. ==============================================================================*/
  7. #if !defined(BOOST_FUSION_FOR_EACH_20070527_0943)
  8. #define BOOST_FUSION_FOR_EACH_20070527_0943
  9. #include <boost/fusion/algorithm/iteration/detail/for_each.hpp>
  10. #include <boost/fusion/support/category_of.hpp>
  11. namespace boost { namespace fusion {
  12. namespace result_of
  13. {
  14. template <typename Sequence, typename F>
  15. struct for_each
  16. {
  17. typedef void type;
  18. };
  19. }
  20. struct random_access_traversal_tag;
  21. template <typename Sequence, typename F>
  22. inline void
  23. for_each(Sequence& seq, F const& f)
  24. {
  25. detail::for_each(seq, f, typename traits::category_of<Sequence>::type());
  26. }
  27. template <typename Sequence, typename F>
  28. inline void
  29. for_each(Sequence const& seq, F const& f)
  30. {
  31. detail::for_each(seq, f, typename traits::category_of<Sequence>::type());
  32. }
  33. }}
  34. #endif