key_of_impl.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*=============================================================================
  2. Copyright (c) 2009 Christopher Schmidt
  3. Copyright (c) 2021-2022 Denis Mikhailov
  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_VIEW_REVERSE_VIEW_DETAIL_KEY_OF_IMPL_HPP
  8. #define BOOST_FUSION_VIEW_REVERSE_VIEW_DETAIL_KEY_OF_IMPL_HPP
  9. #include <boost/fusion/support/config.hpp>
  10. #include <boost/fusion/iterator/key_of.hpp>
  11. #include <boost/fusion/iterator/prior.hpp>
  12. namespace boost { namespace fusion { namespace extension
  13. {
  14. template <typename>
  15. struct key_of_impl;
  16. template <>
  17. struct key_of_impl<reverse_view_iterator_tag>
  18. {
  19. template <typename It>
  20. struct apply
  21. {
  22. typedef typename
  23. result_of::key_of<
  24. typename result_of::prior<
  25. typename It::first_type
  26. >::type
  27. >::type
  28. type;
  29. };
  30. };
  31. }}}
  32. #endif