Lines Matching refs:_Size
151 template <class _Tp, size_t _Size>
168 _Tp __elems_[_Size];
173 _VSTD::fill_n(data(), _Size, __u);
178 _VSTD::swap_ranges(data(), data() + _Size, __a.data());
187 iterator end() _NOEXCEPT {return iterator(data() + _Size);}
189 const_iterator end() const _NOEXCEPT {return const_iterator(data() + _Size);}
211 _LIBCPP_CONSTEXPR size_type size() const _NOEXCEPT {return _Size;}
213 _LIBCPP_CONSTEXPR size_type max_size() const _NOEXCEPT {return _Size;}
215 _LIBCPP_CONSTEXPR bool empty() const _NOEXCEPT {return _Size == 0;}
220 _LIBCPP_ASSERT(__n < _Size, "out-of-bounds access in std::array<T, N>");
225 _LIBCPP_ASSERT(__n < _Size, "out-of-bounds access in std::array<T, N>");
231 if (__n >= _Size)
238 if (__n >= _Size)
245 … _LIBCPP_CONSTEXPR_AFTER_CXX14 reference back() _NOEXCEPT {return (*this)[_Size - 1];}
246 … _LIBCPP_CONSTEXPR_AFTER_CXX11 const_reference back() const _NOEXCEPT {return (*this)[_Size - 1];}
390 template <class _Tp, size_t _Size>
393 operator==(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
398 template <class _Tp, size_t _Size>
401 operator!=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
406 template <class _Tp, size_t _Size>
409 operator<(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
415 template <class _Tp, size_t _Size>
418 operator>(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
423 template <class _Tp, size_t _Size>
426 operator<=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
431 template <class _Tp, size_t _Size>
434 operator>=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
439 template <class _Tp, size_t _Size>
441 __enable_if_t<_Size == 0 || __is_swappable<_Tp>::value, void>
442 swap(array<_Tp, _Size>& __x, array<_Tp, _Size>& __y)
448 template <class _Tp, size_t _Size>
449 struct _LIBCPP_TEMPLATE_VIS tuple_size<array<_Tp, _Size> >
450 : public integral_constant<size_t, _Size> {};
452 template <size_t _Ip, class _Tp, size_t _Size>
453 struct _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, array<_Tp, _Size> >
455 static_assert(_Ip < _Size, "Index out of bounds in std::tuple_element<> (std::array)");
459 template <size_t _Ip, class _Tp, size_t _Size>
462 get(array<_Tp, _Size>& __a) _NOEXCEPT
464 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array)");
468 template <size_t _Ip, class _Tp, size_t _Size>
471 get(const array<_Tp, _Size>& __a) _NOEXCEPT
473 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (const std::array)");
477 template <size_t _Ip, class _Tp, size_t _Size>
480 get(array<_Tp, _Size>&& __a) _NOEXCEPT
482 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array &&)");
486 template <size_t _Ip, class _Tp, size_t _Size>
489 get(const array<_Tp, _Size>&& __a) _NOEXCEPT
491 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (const std::array &&)");
497 template <typename _Tp, size_t _Size, size_t... _Index>
498 _LIBCPP_INLINE_VISIBILITY constexpr array<remove_cv_t<_Tp>, _Size>
499 __to_array_lvalue_impl(_Tp (&__arr)[_Size], index_sequence<_Index...>) {
503 template <typename _Tp, size_t _Size, size_t... _Index>
504 _LIBCPP_INLINE_VISIBILITY constexpr array<remove_cv_t<_Tp>, _Size>
505 __to_array_rvalue_impl(_Tp(&&__arr)[_Size], index_sequence<_Index...>) {
509 template <typename _Tp, size_t _Size>
510 _LIBCPP_INLINE_VISIBILITY constexpr array<remove_cv_t<_Tp>, _Size>
511 to_array(_Tp (&__arr)[_Size]) noexcept(is_nothrow_constructible_v<_Tp, _Tp&>) {
518 return _VSTD::__to_array_lvalue_impl(__arr, make_index_sequence<_Size>());
521 template <typename _Tp, size_t _Size>
522 _LIBCPP_INLINE_VISIBILITY constexpr array<remove_cv_t<_Tp>, _Size>
523 to_array(_Tp(&&__arr)[_Size]) noexcept(is_nothrow_move_constructible_v<_Tp>) {
531 make_index_sequence<_Size>());