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; // constexpr in C++14
96 template <int I, class T, size_t N> const T& get(const array<T, N>&) noexcept; // constexpr in C++14
97 template <int I, class T, size_t N> T&& get(array<T, N>&&) noexcept; // constexpr in C++14
121 struct _LIBCPP_TYPE_VIS_ONLY 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");
214 typename array<_Tp, _Size>::const_reference
215 array<_Tp, _Size>::at(size_type __n) const
219 throw out_of_range("array::at");
221 assert(!"array::at out_of_range");
229 operator==(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
237 operator!=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
245 operator<(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
253 operator>(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
261 operator<=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
269 operator>=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
281 swap(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
288 class _LIBCPP_TYPE_VIS_ONLY tuple_size<array<_Tp, _Size> >
292 class _LIBCPP_TYPE_VIS_ONLY tuple_size<const array<_Tp, _Size> >
296 class _LIBCPP_TYPE_VIS_ONLY tuple_element<_Ip, array<_Tp, _Size> >
303 class _LIBCPP_TYPE_VIS_ONLY tuple_element<_Ip, const array<_Tp, _Size> >
312 get(array<_Tp, _Size>& __a) _NOEXCEPT
314 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array)");
321 get(const array<_Tp, _Size>& __a) _NOEXCEPT
323 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (const std::array)");
332 get(array<_Tp, _Size>&& __a) _NOEXCEPT
334 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array &&)");