[all-commits] [llvm/llvm-project] 026918: [ADT] Define SetVector::count in terms of SetVecto...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Thu Aug 28 07:44:21 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 026918d02045e0b6890a04e339b8a9adf407b70a
https://github.com/llvm/llvm-project/commit/026918d02045e0b6890a04e339b8a9adf407b70a
Author: Kazu Hirata <kazu at google.com>
Date: 2025-08-28 (Thu, 28 Aug 2025)
Changed paths:
M llvm/include/llvm/ADT/SetVector.h
Log Message:
-----------
[ADT] Define SetVector::count in terms of SetVector::contains (NFC) (#155789)
We can avoid repeating the same code in count by delegating to
contains.
While I am at it, this patch adds [[nodiscard] to contains and count.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list