Lines Matching refs:array

2 //===---------------------------- array -----------------------------------===//
15 array synopsis
20 struct array
37 void swap(array& a) noexcept(is_nothrow_swappable_v<T>);
76 array(T, U...) -> array<T, 1 + sizeof...(U)>;
79 bool operator==(const array<T,N>& x, const array<T,N>& y);
81 bool operator!=(const array<T,N>& x, const array<T,N>& y);
83 bool operator<(const array<T,N>& x, const array<T,N>& y);
85 bool operator>(const array<T,N>& x, const array<T,N>& y);
87 bool operator<=(const array<T,N>& x, const array<T,N>& y);
89 bool operator>=(const array<T,N>& x, const array<T,N>& y);
92 void swap(array<T,N>& x, array<T,N>& y) noexcept(noexcept(x.swap(y))); // C++17
96 template <class T, size_t N> struct tuple_size<array<T, N>>;
97 template <size_t I, class T, size_t N> struct tuple_element<I, array<T, N>>;
98 template <size_t I, class T, size_t N> T& get(array<T, N>&) noexcept; // constexpr in C++14
99 template <size_t I, class T, size_t N> const T& get(const array<T, N>&) noexcept; // constexpr in C…
100 template <size_t I, class T, size_t N> T&& get(array<T, N>&&) noexcept; // constexpr in C++14
101 template <size_t I, class T, size_t N> const T&& get(const array<T, N>&&) noexcept; // constexpr in…
128 struct _LIBCPP_TEMPLATE_VIS array
131 typedef array __self;
152 void swap(array& __a) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value) {
215 typename array<_Tp, _Size>::reference
216 array<_Tp, _Size>::at(size_type __n)
219 __throw_out_of_range("array::at");
226 typename array<_Tp, _Size>::const_reference
227 array<_Tp, _Size>::at(size_type __n) const
230 __throw_out_of_range("array::at");
235 struct _LIBCPP_TEMPLATE_VIS array<_Tp, 0>
238 typedef array __self;
260 "cannot fill zero-sized array of type 'const T'");
264 void swap(array&) _NOEXCEPT {
266 "cannot swap zero-sized array of type 'const T'");
308 _LIBCPP_ASSERT(false, "cannot call array<T, 0>::operator[] on a zero-sized array");
314 _LIBCPP_ASSERT(false, "cannot call array<T, 0>::operator[] on a zero-sized array");
320 __throw_out_of_range("array<T, 0>::at");
326 __throw_out_of_range("array<T, 0>::at");
332 _LIBCPP_ASSERT(false, "cannot call array<T, 0>::front() on a zero-sized array");
338 _LIBCPP_ASSERT(false, "cannot call array<T, 0>::front() on a zero-sized array");
344 _LIBCPP_ASSERT(false, "cannot call array<T, 0>::back() on a zero-sized array");
350 _LIBCPP_ASSERT(false, "cannot call array<T, 0>::back() on a zero-sized array");
365 array(_Tp, _Args...)
366 -> array<_Tp, 1 + sizeof...(_Args)>;
372 operator==(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
380 operator!=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
388 operator<(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
397 operator>(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
405 operator<=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
413 operator>=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
426 swap(array<_Tp, _Size>& __x, array<_Tp, _Size>& __y)
433 struct _LIBCPP_TEMPLATE_VIS tuple_size<array<_Tp, _Size> >
437 class _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, array<_Tp, _Size> >
439 static_assert(_Ip < _Size, "Index out of bounds in std::tuple_element<> (std::array)");
447 get(array<_Tp, _Size>& __a) _NOEXCEPT
449 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array)");
456 get(const array<_Tp, _Size>& __a) _NOEXCEPT
458 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (const std::array)");
467 get(array<_Tp, _Size>&& __a) _NOEXCEPT
469 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array &&)");
476 get(const array<_Tp, _Size>&& __a) _NOEXCEPT
478 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (const std::array &&)");