iterate_values.h 261 B

12345678910111213
  1. #pragma once
  2. #include "mapped.h"
  3. template<typename TMapping>
  4. auto IterateValues(TMapping&& map) {
  5. return ::MakeMappedRange(
  6. std::forward<TMapping>(map),
  7. [](auto& x) -> decltype((x.second)) {
  8. return x.second;
  9. }
  10. );
  11. }