Skip to content

Commit 0124058

Browse files
committed
Refactor
1 parent e302a25 commit 0124058

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/mapfile.cc

+2-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ static Map<E> get_map(Context<E> &ctx) {
3535
return map;
3636

3737
tbb::parallel_for(map.range(), [](const typename Map<E>::range_type &range) {
38-
for (auto it = range.begin(); it != range.end(); it++) {
39-
std::vector<Symbol<E> *> &vec = it->second;
40-
ranges::stable_sort(vec, {}, &Symbol<E>::value);
41-
}
38+
for (auto &[k, v] : range)
39+
ranges::stable_sort(v, {}, &Symbol<E>::value);
4240
});
4341
return map;
4442
}

0 commit comments

Comments
 (0)