migrate to std::ranges
Move the various seq_ functions, as well as std::(stable_)sort, std::accumulate, std::transform, std::find, std::find_if to their C++20 std::ranges counterparts.
This commit is contained in:
@ -30,7 +30,7 @@ Mu::mu_cmd_script(const Options& opts)
|
||||
{
|
||||
ScriptPaths paths = { MU_SCRIPTS_DIR };
|
||||
const auto&& scriptinfos{script_infos(paths)};
|
||||
auto script_it = Mu::seq_find_if(scriptinfos, [&](auto&& item) {
|
||||
auto script_it = std::ranges::find_if(scriptinfos, [&](auto&& item) {
|
||||
return item.name == opts.script.name;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user