/Src/Dependencies/Boost/boost/fusion/container/set/detail/end_impl.hpp

http://hadesmem.googlecode.com/ · C++ Header · 43 lines · 30 code · 6 blank · 7 comment · 0 complexity · 981c8e0f2c2198e1bd562ceeca0b010d MD5 · raw file

  1. /*=============================================================================
  2. Copyright (c) 2001-2006 Joel de Guzman
  3. Copyright (c) 2009 Christopher Schmidt
  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. #ifndef BOOST_FUSION_CONTAINER_SET_DETAIL_END_IMPL_HPP
  8. #define BOOST_FUSION_CONTAINER_SET_DETAIL_END_IMPL_HPP
  9. #include <boost/fusion/iterator/basic_iterator.hpp>
  10. namespace boost { namespace fusion { namespace extension
  11. {
  12. template <typename>
  13. struct end_impl;
  14. template <>
  15. struct end_impl<set_tag>
  16. {
  17. template <typename Seq>
  18. struct apply
  19. {
  20. typedef
  21. basic_iterator<
  22. set_iterator_tag
  23. , typename Seq::category
  24. , Seq
  25. , Seq::size::value
  26. >
  27. type;
  28. static type
  29. call(Seq& seq)
  30. {
  31. return type(seq,0);
  32. }
  33. };
  34. };
  35. }}}
  36. #endif