We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e302a25 commit 0124058Copy full SHA for 0124058
src/mapfile.cc
@@ -35,10 +35,8 @@ static Map<E> get_map(Context<E> &ctx) {
35
return map;
36
37
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
- }
+ for (auto &[k, v] : range)
+ ranges::stable_sort(v, {}, &Symbol<E>::value);
42
});
43
44
}
0 commit comments