llvm-project
026918d0 - [ADT] Define SetVector::count in terms of SetVector::contains (NFC) (#155789)

Commit
33 days ago
[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.
Parents
Loading