llvm-project
026918d0
- [ADT] Define SetVector::count in terms of SetVector::contains (NFC) (#155789)
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Commit
View On
GitHub
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.
References
#155789 - [ADT] Define SetVector::count in terms of SetVector::contains (NFC)
Author
kazutakahirata
Parents
42f992f0
Loading