Commit 026918d
authored
[ADT] Define SetVector::count in terms of SetVector::contains (NFC) (llvm#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.1 parent 42f992f commit 026918d
1 file changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
| 274 | + | |
| 275 | + | |
280 | 276 | | |
281 | 277 | | |
282 | 278 | | |
| |||
0 commit comments