Modernize std::set_intersection with ranges
This commit is contained in:
1 parent
728663bdc0
commit
88a1a5b4f2
2 files changed
+5
-6
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user