Lines Matching refs:_Size
120 template <class _Tp, size_t _Size>
137 value_type __elems_[_Size > 0 ? _Size : 1];
141 {_VSTD::fill_n(__elems_, _Size, __u);}
144 {_VSTD::swap_ranges(__elems_, __elems_ + _Size, __a.__elems_);}
152 iterator end() _NOEXCEPT {return iterator(__elems_ + _Size);}
154 const_iterator end() const _NOEXCEPT {return const_iterator(__elems_ + _Size);}
176 _LIBCPP_CONSTEXPR size_type size() const _NOEXCEPT {return _Size;}
178 _LIBCPP_CONSTEXPR size_type max_size() const _NOEXCEPT {return _Size;}
180 _LIBCPP_CONSTEXPR bool empty() const _NOEXCEPT {return _Size == 0;}
190 …_LIBCPP_INLINE_VISIBILITY reference back() {return __elems_[_Size > 0 ? _Size-1 : 0];}
191 …CPP_CONSTEXPR_AFTER_CXX11 const_reference back() const {return __elems_[_Size > 0 ? _Size-1 : 0];}
199 template <class _Tp, size_t _Size>
200 typename array<_Tp, _Size>::reference
201 array<_Tp, _Size>::at(size_type __n)
203 if (__n >= _Size)
212 template <class _Tp, size_t _Size>
214 typename array<_Tp, _Size>::const_reference
215 array<_Tp, _Size>::at(size_type __n) const
217 if (__n >= _Size)
226 template <class _Tp, size_t _Size>
229 operator==(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
231 return _VSTD::equal(__x.__elems_, __x.__elems_ + _Size, __y.__elems_);
234 template <class _Tp, size_t _Size>
237 operator!=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
242 template <class _Tp, size_t _Size>
245 operator<(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
247 …D::lexicographical_compare(__x.__elems_, __x.__elems_ + _Size, __y.__elems_, __y.__elems_ + _Size);
250 template <class _Tp, size_t _Size>
253 operator>(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
258 template <class _Tp, size_t _Size>
261 operator<=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
266 template <class _Tp, size_t _Size>
269 operator>=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
274 template <class _Tp, size_t _Size>
281 swap(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
287 template <class _Tp, size_t _Size>
288 class _LIBCPP_TYPE_VIS_ONLY tuple_size<array<_Tp, _Size> >
289 : public integral_constant<size_t, _Size> {};
291 template <class _Tp, size_t _Size>
292 class _LIBCPP_TYPE_VIS_ONLY tuple_size<const array<_Tp, _Size> >
293 : public integral_constant<size_t, _Size> {};
295 template <size_t _Ip, class _Tp, size_t _Size>
296 class _LIBCPP_TYPE_VIS_ONLY tuple_element<_Ip, array<_Tp, _Size> >
302 template <size_t _Ip, class _Tp, size_t _Size>
303 class _LIBCPP_TYPE_VIS_ONLY tuple_element<_Ip, const array<_Tp, _Size> >
309 template <size_t _Ip, class _Tp, size_t _Size>
312 get(array<_Tp, _Size>& __a) _NOEXCEPT
314 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array)");
318 template <size_t _Ip, class _Tp, size_t _Size>
321 get(const array<_Tp, _Size>& __a) _NOEXCEPT
323 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (const std::array)");
329 template <size_t _Ip, class _Tp, size_t _Size>
332 get(array<_Tp, _Size>&& __a) _NOEXCEPT
334 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array &&)");