[llvm] [ADT] Introduce SetVector::reserve (NFC) (PR #209951)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 16 23:55:00 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.
----------------
MaskRay wrote:
Are there instantiations without `reserve`?
https://github.com/llvm/llvm-project/pull/209951
More information about the llvm-commits
mailing list