Merge pull request #1409 from lhhxxxxx/dev

perf. 使用ranges及views及<=>及其他一些c++20优化及一般优化
This commit is contained in:
MistEO
2022-08-02 23:41:39 +08:00
committed by GitHub
35 changed files with 245 additions and 248 deletions

View File

@@ -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;
});