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

Markus Böck via llvm-commits llvm-commits at lists.llvm.org
Sun May 26 00:44:13 PDT 2024


zero9178 wrote:

Agree with things said by others in the thread. Adding this API makes sense to match `std::vector` in C++23. I am not sure it makes sense as a replacement of `llvm::append_range` however as it is more specific. If the `append_range` implementations in `std::vector` and `llvm::SmallVector` are more effiecent than the general ones then `llvm::append_range` should detect and use these similar to what we do with `llvm::size` and the `.size()` method detection.

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


More information about the llvm-commits mailing list