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:
@ -447,7 +447,7 @@ MimeMessage::references() const noexcept
|
||||
{
|
||||
// is ref already in the list? O(n) but with small n.
|
||||
auto is_dup = [](auto&& seq, const std::string& ref) {
|
||||
return seq_some(seq, [&](auto&& str) { return ref == str; });
|
||||
return std::ranges::any_of(seq, [&](auto&& str) { return ref == str; });
|
||||
};
|
||||
|
||||
auto on_blacklist = [](auto&& msgid) {
|
||||
|
||||
Reference in New Issue
Block a user