Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add set algebraic functions to HashSet
https://bugs.webkit.org/show_bug.cgi?id=248881 rdar://103074259 Reviewed by Darin Adler. Adds union, intersection and symmetric difference operations to HashSet both as in-place mutating operations (the ones with the `form` prefix) and new set creating operations (the ones with the `With` suffix). * Source/WTF/wtf/HashSet.h: (WTF::W>::unionWith const): (WTF::W>::intersectionWith const): (WTF::W>::symmetricDifferenceWith const): (WTF::W>::formUnion): (WTF::W>::formIntersection): (WTF::W>::formSymmetricDifference): * Tools/TestWebKitAPI/Tests/WTF/HashSet.cpp: (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/257569@main
- Loading branch information
Showing
2 changed files
with
373 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters