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:
@ -143,10 +143,9 @@ import_labels_for_message(Mu::Store& store, bool dry_run, Level level,
|
||||
using namespace Labels;
|
||||
|
||||
Labels::DeltaLabelVec delta_labels{};
|
||||
std::transform(labels.begin(), labels.end(),
|
||||
std::back_inserter(delta_labels),
|
||||
[](const auto& label) {
|
||||
return DeltaLabel{Delta::Add, label}; });
|
||||
std::ranges::transform(labels, std::back_inserter(delta_labels),
|
||||
[](const auto& label) {
|
||||
return DeltaLabel{Delta::Add, label}; });
|
||||
|
||||
const auto qres = [&]()->Result<QueryResults>{
|
||||
// plan A: match by path
|
||||
|
||||
Reference in New Issue
Block a user