Lines Matching refs:array

14     array synopsis
19 struct array
36 void swap(array& a) noexcept(is_nothrow_swappable_v<T>); // constexpr in C++20
75 array(T, U...) -> array<T, 1 + sizeof...(U)>; // C++17
78 bool operator==(const array<T,N>& x, const array<T,N>& y); // constexpr in C++20
80 bool operator!=(const array<T,N>& x, const array<T,N>& y); // removed in C++20
82 bool operator<(const array<T,N>& x, const array<T,N>& y); // removed in C++20
84 bool operator>(const array<T,N>& x, const array<T,N>& y); // removed in C++20
86 bool operator<=(const array<T,N>& x, const array<T,N>& y); // removed in C++20
88 bool operator>=(const array<T,N>& x, const array<T,N>& y); // removed in C++20
91 operator<=>(const array<T, N>& x, const array<T, N>& y); // since C++20
94 void swap(array<T,N>& x, array<T,N>& y) noexcept(noexcept(x.swap(y))); // constexpr in C++20
97 constexpr array<remove_cv_t<T>, N> to_array(T (&a)[N]); // C++20
99 constexpr array<remove_cv_t<T>, N> to_array(T (&&a)[N]); // C++20
103 template <class T, size_t N> struct tuple_size<array<T, N>>;
104 template <size_t I, class T, size_t N> struct tuple_element<I, array<T, N>>;
105 template <size_t I, class T, size_t N> T& get(array<T, N>&) noexcept; // constexpr in…
106 template <size_t I, class T, size_t N> const T& get(const array<T, N>&) noexcept; // constexpr in…
107 template <size_t I, class T, size_t N> T&& get(array<T, N>&&) noexcept; // constexpr in…
108 template <size_t I, class T, size_t N> const T&& get(const array<T, N>&&) noexcept; // constexpr in…
120 #include <__cxx03/__fwd/array.h>
160 struct _LIBCPP_TEMPLATE_VIS array {
161 …rivially_relocatable = __conditional_t<__libcpp_is_trivially_relocatable<_Tp>::value, array, void>;
164 using __self = array;
187 …_LIBCPP_HIDE_FROM_ABI void swap(array& __a) { std::swap_ranges(data(), data() + _Size, __a.data())…
212 _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__n < _Size, "out-of-bounds access in std::array<T, N>");
216 _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__n < _Size, "out-of-bounds access in std::array<T, N>");
222 __throw_out_of_range("array::at");
228 __throw_out_of_range("array::at");
242 struct _LIBCPP_TEMPLATE_VIS array<_Tp, 0> {
244 typedef array __self;
269 static_assert(!is_const<_Tp>::value, "cannot fill zero-sized array of type 'const T'");
272 _LIBCPP_HIDE_FROM_ABI void swap(array&) _NOEXCEPT {
273 static_assert(!is_const<_Tp>::value, "cannot swap zero-sized array of type 'const T'");
299 …IBCPP_ASSERT_VALID_ELEMENT_ACCESS(false, "cannot call array<T, 0>::operator[] on a zero-sized arra…
304 …IBCPP_ASSERT_VALID_ELEMENT_ACCESS(false, "cannot call array<T, 0>::operator[] on a zero-sized arra…
309 __throw_out_of_range("array<T, 0>::at");
314 __throw_out_of_range("array<T, 0>::at");
319 …LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(false, "cannot call array<T, 0>::front() on a zero-sized array"…
324 …LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(false, "cannot call array<T, 0>::front() on a zero-sized array"…
329 …_LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(false, "cannot call array<T, 0>::back() on a zero-sized array"…
334 …_LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(false, "cannot call array<T, 0>::back() on a zero-sized array"…
340 inline _LIBCPP_HIDE_FROM_ABI bool operator==(const array<_Tp, _Size>& __x, const array<_Tp, _Size>&…
345 inline _LIBCPP_HIDE_FROM_ABI bool operator!=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>&…
350 inline _LIBCPP_HIDE_FROM_ABI bool operator<(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& …
355 inline _LIBCPP_HIDE_FROM_ABI bool operator>(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& …
360 inline _LIBCPP_HIDE_FROM_ABI bool operator<=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>&…
365 inline _LIBCPP_HIDE_FROM_ABI bool operator>=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>&…
370 inline _LIBCPP_HIDE_FROM_ABI void swap(array<_Tp, _Size>& __x, array<_Tp, _Size>& __y) {
375 struct _LIBCPP_TEMPLATE_VIS tuple_size<array<_Tp, _Size> > : public integral_constant<size_t, _Size…
378 struct _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, array<_Tp, _Size> > {
379 static_assert(_Ip < _Size, "Index out of bounds in std::tuple_element<> (std::array)");
384 inline _LIBCPP_HIDE_FROM_ABI _Tp& get(array<_Tp, _Size>& __a) _NOEXCEPT {
385 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array)");
390 inline _LIBCPP_HIDE_FROM_ABI const _Tp& get(const array<_Tp, _Size>& __a) _NOEXCEPT {
391 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (const std::array)");
396 inline _LIBCPP_HIDE_FROM_ABI _Tp&& get(array<_Tp, _Size>&& __a) _NOEXCEPT {
397 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array &&)");
402 inline _LIBCPP_HIDE_FROM_ABI const _Tp&& get(const array<_Tp, _Size>&& __a) _NOEXCEPT {
403 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (const std::array &&)");