begin_impl.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 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_BEGIN_IMPL_HPP
  8. #define BOOST_FUSION_CONTAINER_SET_DETAIL_BEGIN_IMPL_HPP
  9. #include <boost/fusion/iterator/basic_iterator.hpp>
  10. namespace boost { namespace fusion { namespace extension
  11. {
  12. template <typename>
  13. struct begin_impl;
  14. template <>
  15. struct begin_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. , 0
  26. >
  27. type;
  28. static type
  29. call(Seq& seq)
  30. {
  31. return type(seq,0);
  32. }
  33. };
  34. };
  35. }}}
  36. #endif