Home | History | Annotate | Download | only in gdbsupport

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
93 constexpr array_view () noexcept
98 array_view element. The created view as size==1. This is
99 templated on U to allow constructing a array_view<const T> over a
101 can't create an array_view<T> over a const T. */
104 constexpr array_view (U &elem) noexcept
111 constexpr array_view (U &&elem) noexcept
119 constexpr array_view (U *array, size_t size) noexcept
128 constexpr array_view (U *begin, V *end) noexcept
135 constexpr array_view (U (&array)[Size]) noexcept
152 constexpr array_view (Container &&c) noexcept
188 constexpr array_view<T> slice (size_type start, size_type size) const noexcept
199 constexpr array_view<T> slice (size_type start) const noexcept
217 void copy (gdb::array_view<U> src, gdb::array_view<T> dest)
232 operator== (const gdb::array_view<T> &lhs, const gdb::array_view<T> &rhs)
248 operator!= (const gdb::array_view<T> &lhs, const gdb::array_view<T> &rhs)
256 This is useful as alternative to constructing an array_view using
263 extern void foo (int, int, gdb::array_view<value *>);
278 Or by instantiating an array_view explicitly:
280 foo (1, 2, gdb::array_view<value *>(values, nargs));
283 inferring the array_view element's type:
289 constexpr inline array_view<U>