end_impl.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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_END_IMPL_02042013_0857)
  7. #define BOOST_FUSION_MAP_END_IMPL_02042013_0857
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/fusion/container/map/map_iterator.hpp>
  10. namespace boost { namespace fusion
  11. {
  12. struct map_tag;
  13. namespace extension
  14. {
  15. template<typename T>
  16. struct end_impl;
  17. template<>
  18. struct end_impl<map_tag>
  19. {
  20. template<typename Sequence>
  21. struct apply
  22. {
  23. typedef map_iterator<Sequence, Sequence::size::value> type;
  24. BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
  25. static type call(Sequence& seq)
  26. {
  27. return type(seq);
  28. }
  29. };
  30. };
  31. }
  32. }}
  33. #endif