[llvm] [ADT] Add SmallVectorImpl::append_range (PR #93384)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Sun May 26 06:35:26 PDT 2024


================
@@ -701,6 +701,10 @@ class SmallVectorImpl : public SmallVectorTemplateBase<T> {
     this->set_size(this->size() + NumInputs);
   }
 
+  template <typename RangeTy> void append_range(RangeTy &&R) {
+    this->append(R.begin(), R.end());
----------------
kuhar wrote:

Ah, good point.

https://github.com/llvm/llvm-project/pull/93384


More information about the llvm-commits mailing list