Lines Matching refs:ArrayRef
41 class ArrayRef {
57 constexpr ArrayRef() in ArrayRef() function
62 explicit constexpr ArrayRef(T (&array)[size]) in ArrayRef() function
69 explicit constexpr ArrayRef(U (&array)[size]) in ArrayRef() function
73 constexpr ArrayRef(T* array_in, size_t size_in) in ArrayRef() function
80 explicit ArrayRef(Vector& v) in ArrayRef() function
89 explicit ArrayRef(const Vector& v) in ArrayRef() function
93 ArrayRef(const ArrayRef&) = default;
97 ArrayRef& operator=(const ArrayRef& other) {
104 typename std::enable_if<std::is_same<T, const U>::value, ArrayRef>::type&
105 operator=(const ArrayRef<U>& other) {
106 return *this = ArrayRef(other);
110 static ArrayRef Cast(const ArrayRef<U>& src) { in Cast()
111 return ArrayRef(reinterpret_cast<const T*>(src.data()), in Cast()
116 ~ArrayRef() = default;
171 ArrayRef SubArray(size_type pos) { in SubArray()
175 ArrayRef<const T> SubArray(size_type pos) const { in SubArray()
179 ArrayRef SubArray(size_type pos, size_type length) { in SubArray()
182 return ArrayRef(data() + pos, length); in SubArray()
185 ArrayRef<const T> SubArray(size_type pos, size_type length) const { in SubArray()
188 return ArrayRef<const T>(data() + pos, length); in SubArray()
197 bool operator==(const ArrayRef<T>& lhs, const ArrayRef<T>& rhs) {
202 bool operator!=(const ArrayRef<T>& lhs, const ArrayRef<T>& rhs) {