mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
Modernize std::set_intersection
with ranges
This commit is contained in:
@ -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