Modernize std::set_intersection with ranges

This commit is contained in:
mitaclaw committed 2024-10-10 00:53:48 -07:00
1 parent 728663bdc0
commit 88a1a5b4f2
2 files changed
+5 -6

No files matched your search

+1 -2
View File
@@ -111,8 +111,7 @@ ProfileCycler::GetMatchingProfilesFromSetting(const std::string& setting,
}
std::vector<std::string> result;
std::set_intersection(profiles.begin(), profiles.end(), profiles_from_setting.begin(),
profiles_from_setting.end(), std::back_inserter(result));
std::ranges::set_intersection(profiles, profiles_from_setting, std::back_inserter(result));
return result;
}