/Src/Dependencies/Boost/boost/fusion/container/map/detail/begin_impl.hpp

http://hadesmem.googlecode.com/ · C++ Header · 43 lines · 30 code · 6 blank · 7 comment · 0 complexity · 9c44701c143502c169df762a92334dd0 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_MAP_DETAIL_BEGIN_IMPL_HPP
  8. #define BOOST_FUSION_CONTAINER_MAP_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<map_tag>
  16. {
  17. template <typename Seq>
  18. struct apply
  19. {
  20. typedef
  21. basic_iterator<
  22. map_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