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:
@ -51,7 +51,7 @@ Mu::to_string(const Mu::Contacts& contacts)
|
||||
{
|
||||
std::string res;
|
||||
|
||||
seq_for_each(contacts, [&](auto&& contact) {
|
||||
std::ranges::for_each(contacts, [&](auto&& contact) {
|
||||
if (res.empty())
|
||||
res = contact.display_name();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user