| 108 | using PlaceWithIDs = std::pair<feature::FeatureBuilder, generator::PlaceProcessor::IDsContainerT>; |
| 109 | |
| 110 | void Sort(std::vector<PlaceWithIDs> & value) |
| 111 | { |
| 112 | std::sort(value.begin(), value.end(), [](auto const & left, auto const & right) |
| 113 | { return left.first.GetMostGenericOsmId() < right.first.GetMostGenericOsmId(); }); |
| 114 | |
| 115 | for (auto & [_, ids] : value) |
| 116 | { |
| 117 | std::sort(ids.begin(), ids.end()); |
| 118 | ids.erase(std::unique(ids.begin(), ids.end()), ids.end()); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | void Test(generator::PlaceProcessor & processor, std::vector<PlaceWithIDs> & expected) |
| 123 | { |