[llvm] [ArrayRef] Add constructor from iterator_range<U*> (NFC). (PR #137796)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 29 11:19:41 PDT 2025
================
@@ -149,6 +149,20 @@ namespace llvm {
* = nullptr)
: Data(Vec.data()), Length(Vec.size()) {}
+ /// Construct an ArrayRef<T> from iterator_range<U*>. This uses SFINAE
+ /// to ensure that this is only used for iterator ranges of random access
+ /// iterators that can be converted.
+ template <typename U,
+ typename = std::enable_if<
+ std::is_base_of<
----------------
fhahn wrote:
This is now gone
https://github.com/llvm/llvm-project/pull/137796
More information about the llvm-commits
mailing list