blob: 0915d0040d87155d961d3530d9440e97cd3213d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#pragma once
#include "mapped.h"
template<typename TMapping>
auto IterateKeys(TMapping&& map) {
return ::MakeMappedRange(
std::forward<TMapping>(map),
[](const auto& x) -> decltype((x.first)) {
return x.first;
}
);
}
|