Lines Matching refs:ArrayView
147 class ArrayView final : public impl::ArrayViewBase<T, Size> {
154 ArrayView(U* data, size_t size) in ArrayView() function
164 ArrayView() : ArrayView(nullptr, 0) {} in ArrayView() function
165 ArrayView(std::nullptr_t) // NOLINT in ArrayView() function
166 : ArrayView() {} in ArrayView()
167 ArrayView(std::nullptr_t, size_t size) in ArrayView() function
168 : ArrayView(static_cast<T*>(nullptr), size) { in ArrayView()
175 ArrayView(U (&array)[N]) // NOLINT in ArrayView() function
176 : ArrayView(array, N) { in ArrayView()
188 ArrayView(std::array<U, N>& u) // NOLINT in ArrayView() function
189 : ArrayView(u.data(), u.size()) {} in ArrayView()
198 ArrayView(const std::array<U, N>& u) // NOLINT in ArrayView() function
199 : ArrayView(u.data(), u.size()) {} in ArrayView()
212 ArrayView(U& u) // NOLINT in ArrayView() function
213 : ArrayView(u.data(), u.size()) { in ArrayView()
220 ArrayView(const U& u) // NOLINT(runtime/explicit) in ArrayView() function
221 : ArrayView(u.data(), u.size()) { in ArrayView()
240 ArrayView(U& u) // NOLINT in ArrayView() function
241 : ArrayView(u.data(), u.size()) {} in ArrayView()
246 ArrayView(const U& u) // NOLINT(runtime/explicit) in ArrayView() function
247 : ArrayView(u.data(), u.size()) {} in ArrayView()
262 ArrayView<T> subview(size_t offset, size_t size) const { in subview()
264 ? ArrayView<T>(this->data() + offset, in subview()
266 : ArrayView<T>(); in subview()
268 ArrayView<T> subview(size_t offset) const { in subview()
276 bool operator==(const ArrayView<T, Size1>& a, const ArrayView<T, Size2>& b) {
280 bool operator!=(const ArrayView<T, Size1>& a, const ArrayView<T, Size2>& b) {
287 static_assert(sizeof(ArrayView<int>) == 2 * sizeof(int*), "");
288 static_assert(sizeof(ArrayView<int, 17>) == sizeof(int*), "");
289 static_assert(std::is_empty<ArrayView<int, 0>>::value, "");
292 inline ArrayView<T> MakeArrayView(T* data, size_t size) { in MakeArrayView()
293 return ArrayView<T>(data, size); in MakeArrayView()
302 inline ArrayView<U, Size> reinterpret_array_view(ArrayView<T, Size> view) { in reinterpret_array_view()
310 return ArrayView<U, Size>(reinterpret_cast<U*>(view.data()), view.size()); in reinterpret_array_view()