[webkit-changes] [WebKit/WebKit] 507476: Update `WTF::HashTable` to be compatible with `ran...
c8ef
noreply at github.com
Tue Jan 28 06:39:50 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5074769715d3de2ee0b47571d82107970abb2f78
https://github.com/WebKit/WebKit/commit/5074769715d3de2ee0b47571d82107970abb2f78
Author: c8ef <c8ef at outlook.com>
Date: 2025-01-28 (Tue, 28 Jan 2025)
Changed paths:
M Source/WTF/wtf/HashTable.h
M Tools/TestWebKitAPI/Tests/WTF/HashSet.cpp
Log Message:
-----------
Update `WTF::HashTable` to be compatible with `ranges`
https://bugs.webkit.org/show_bug.cgi?id=286548
Reviewed by Darin Adler.
I tried replacing `WTF::anyOf` with `std::ranges::any_of`, but encountered
numerous compiler errors, many of which were related to `WTF::HashTable`. The
issue was that, in order to be compatible with ranges, the iterator needed to
satisfy `std::weakly_incrementable`. This patch resolves the issue and includes
related tests.
* Source/WTF/wtf/HashTable.h:
(WTF::HashTableConstIteratorAdapter::operator++):
(WTF::HashTableIteratorAdapter::operator++):
* Tools/TestWebKitAPI/Tests/WTF/HashSet.cpp:
(TestWebKitAPI::TEST(WTF_HashSet, RangesAllAnyNoneOf)):
Canonical link: https://commits.webkit.org/289446@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list