Calculate unique labels for both paths (present in one but not in the other)
| 45 | |
| 46 | /// Calculate unique labels for both paths (present in one but not in the other) |
| 47 | std::pair<vector<Label>, vector<Label>> |
| 48 | getLabelDiff(const std::vector<Label> &path1, |
| 49 | const std::vector<Label> &path2) |
| 50 | { |
| 51 | auto diff = set_symmetric_diff(path1, path2); |
| 52 | |
| 53 | auto unique_1 = set_intersect(path1, diff); |
| 54 | |
| 55 | auto unique_2 = set_intersect(path2, diff); |
| 56 | |
| 57 | return std::make_pair(std::move(unique_1), std::move(unique_2)); |
| 58 | } |
| 59 | |
| 60 | } // namespace analysis |
| 61 | } // namespace cpprofiler |
no test coverage detected