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:
@ -55,7 +55,7 @@ looks_like_matcher(const Sexp& sexp)
|
||||
return false;
|
||||
|
||||
const auto symbol{sexp.front().symbol()};
|
||||
if (seq_some(value_syms, [&](auto &&sym) { return symbol == sym; }))
|
||||
if (std::ranges::any_of(value_syms, [&](auto &&sym) { return symbol == sym; }))
|
||||
return true;
|
||||
else if (!!field_from_name(symbol.name) || field_is_combi(symbol.name))
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user