[llvm] [ADT] Introduce SetVector::reserve (NFC) (PR #209951)
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 17:56:53 PDT 2026
================
@@ -102,6 +106,14 @@ class SetVector {
/// Determine the number of elements in the SetVector.
[[nodiscard]] size_type size() const { return vector_.size(); }
+ /// Reserve space in the SetVector if supported by the underlying containers.
----------------
kuhar wrote:
Would it make sense to extend so that we don't have to use the detector?
https://github.com/llvm/llvm-project/pull/209951
More information about the llvm-commits
mailing list