Lines Matching defs:array_view
26 /* An array_view is an abstraction that provides a non-owning view
29 A way to put it is that array_view is to std::vector (and
33 The main intent of array_view is to use it as function input
42 void function (gdb::array_view<A> as);
55 created by specifying a const T as array_view template parameter,
56 in which case operator[] of non-const array_view objects ends up
57 returning const references. Making the array_view itself const is
61 Since array_view objects are small (pointer plus size), and
71 class array_view
95 constexpr array_view () noexcept
100 array_view element. The created view as size==1. This is
101 templated on U to allow constructing a array_view<const T> over a
103 can't create an array_view<T> over a const T. */
106 constexpr array_view (U &elem) noexcept
113 constexpr array_view (U &&elem) noexcept
121 constexpr array_view (U *array, size_t size) noexcept
130 constexpr array_view (U *begin, V *end) noexcept
137 constexpr array_view (U (&array)[Size]) noexcept
154 constexpr array_view (Container &&c) noexcept
190 constexpr array_view<T> slice (size_type start, size_type size) const noexcept
201 constexpr array_view<T> slice (size_type start) const noexcept
219 void copy (gdb::array_view<U> src, gdb::array_view<T> dest)
234 operator== (const gdb::array_view<T> &lhs, const gdb::array_view<T> &rhs)
250 operator!= (const gdb::array_view<T> &lhs, const gdb::array_view<T> &rhs)
258 This is useful as alternative to constructing an array_view using
265 extern void foo (int, int, gdb::array_view<value *>);
280 Or by instantiating an array_view explicitly:
282 foo (1, 2, gdb::array_view<value *>(values, nargs));
285 inferring the array_view element's type:
291 constexpr inline array_view<U>