begin_impl.hpp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*=============================================================================
  2. Copyright (c) 2005-2013 Joel de Guzman
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #if !defined(BOOST_FUSION_MAP_BEGIN_IMPL_02042013_0857)
  7. #define BOOST_FUSION_MAP_BEGIN_IMPL_02042013_0857
  8. #include <boost/fusion/container/map/map_iterator.hpp>
  9. namespace boost { namespace fusion
  10. {
  11. struct map_tag;
  12. namespace extension
  13. {
  14. template<typename T>
  15. struct begin_impl;
  16. template<>
  17. struct begin_impl<map_tag>
  18. {
  19. template<typename Sequence>
  20. struct apply
  21. {
  22. typedef map_iterator<Sequence, 0> type;
  23. static type call(Sequence& seq)
  24. {
  25. return type(seq);
  26. }
  27. };
  28. };
  29. }
  30. }}
  31. #endif