mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
Merge pull request #1409 from lhhxxxxx/dev
perf. 使用ranges及views及<=>及其他一些c++20优化及一般优化
This commit is contained in:
@@ -34,8 +34,7 @@ bool asst::InfrastPowerTask::_run()
|
||||
opers_detect();
|
||||
}
|
||||
|
||||
auto find_iter = std::find_if(
|
||||
m_all_available_opers.begin(), m_all_available_opers.end(),
|
||||
auto find_iter = std::ranges::find_if(m_all_available_opers,
|
||||
[&](const infrast::Oper& info) -> bool {
|
||||
return info.selected;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user