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:
@ -46,7 +46,7 @@ static std::string /* return comma-sep'd list of attachments */
|
||||
get_attach_str(const Message& message, const Options& opts)
|
||||
{
|
||||
std::string str;
|
||||
seq_for_each(message.parts(), [&](auto&& part) {
|
||||
std::ranges::for_each(message.parts(), [&](auto&& part) {
|
||||
if (auto fname = part.raw_filename(); fname) {
|
||||
if (str.empty())
|
||||
str = fname.value();
|
||||
|
||||
Reference in New Issue
Block a user