Lines Matching refs:array
2 //===---------------------------- array -----------------------------------===//
15 array synopsis
20 struct array
37 void swap(array& a) noexcept(noexcept(swap(declval<T&>(), declval<T&>())));
76 bool operator==(const array<T,N>& x, const array<T,N>& y);
78 bool operator!=(const array<T,N>& x, const array<T,N>& y);
80 bool operator<(const array<T,N>& x, const array<T,N>& y);
82 bool operator>(const array<T,N>& x, const array<T,N>& y);
84 bool operator<=(const array<T,N>& x, const array<T,N>& y);
86 bool operator>=(const array<T,N>& x, const array<T,N>& y);
89 void swap(array<T,N>& x, array<T,N>& y) noexcept(noexcept(x.swap(y)));
93 template <class T, size_t N> struct tuple_size<array<T, N>>;
94 template <int I, class T, size_t N> struct tuple_element<I, array<T, N>>;
95 template <int I, class T, size_t N> T& get(array<T, N>&) noexcept;
96 template <int I, class T, size_t N> const T& get(const array<T, N>&) noexcept;
97 template <int I, class T, size_t N> T&& get(array<T, N>&&) noexcept;
121 struct _LIBCPP_VISIBLE array
124 typedef array __self;
143 void swap(array& __a) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value)
200 typename array<_Tp, _Size>::reference
201 array<_Tp, _Size>::at(size_type __n)
205 throw out_of_range("array::at");
207 assert(!"array::at out_of_range");
213 typename array<_Tp, _Size>::const_reference
214 array<_Tp, _Size>::at(size_type __n) const
218 throw out_of_range("array::at");
220 assert(!"array::at out_of_range");
228 operator==(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
236 operator!=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
244 operator<(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
252 operator>(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
260 operator<=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
268 operator>=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
280 swap(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
287 class _LIBCPP_VISIBLE tuple_size<array<_Tp, _Size> >
291 class _LIBCPP_VISIBLE tuple_size<const array<_Tp, _Size> >
295 class _LIBCPP_VISIBLE tuple_element<_Ip, array<_Tp, _Size> >
302 class _LIBCPP_VISIBLE tuple_element<_Ip, const array<_Tp, _Size> >
311 get(array<_Tp, _Size>& __a) _NOEXCEPT
313 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array)");
320 get(const array<_Tp, _Size>& __a) _NOEXCEPT
322 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (const std::array)");
331 get(array<_Tp, _Size>&& __a) _NOEXCEPT
333 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array &&)");