iterator_fwd.hpp 437 B

1234567891011121314151617181920
  1. //
  2. // iterator_fwd.hpp
  3. // iterator
  4. //
  5. // Created by Sam Jaffe on 2/18/17.
  6. //
  7. #pragma once
  8. namespace iterator {
  9. namespace detail {
  10. template <typename> struct void_t { using type = void; };
  11. template <typename IterType>
  12. using value_iterator = decltype(std::begin(*std::declval<IterType>()));
  13. template <typename IterType>
  14. using mapped_iterator = decltype(std::begin(std::declval<IterType>()->second));
  15. }
  16. }