Lines Matching refs:_Size
167 template <class _Tp, size_t _Size>
183 _Tp __elems_[_Size];
187 std::fill_n(data(), _Size, __u);
192 std::swap_ranges(data(), data() + _Size, __a.data());
200 …ROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX17 iterator end() _NOEXCEPT { return iterator(data() + _Size); }
202 return const_iterator(data() + _Size);
226 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR size_type size() const _NOEXCEPT { return _Size; }
227 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR size_type max_size() const _NOEXCEPT { return _Size; }
229 return _Size == 0;
234 _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__n < _Size, "out-of-bounds access in std::array<T, N>");
238 _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__n < _Size, "out-of-bounds access in std::array<T, N>");
243 if (__n >= _Size)
249 if (__n >= _Size)
256 …DE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX17 reference back() _NOEXCEPT { return (*this)[_Size - 1]; }
258 return (*this)[_Size - 1];
382 template <class _Tp, size_t _Size>
384 operator==(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y) {
390 template <class _Tp, size_t _Size>
391 inline _LIBCPP_HIDE_FROM_ABI bool operator!=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>&…
395 template <class _Tp, size_t _Size>
396 inline _LIBCPP_HIDE_FROM_ABI bool operator<(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& …
400 template <class _Tp, size_t _Size>
401 inline _LIBCPP_HIDE_FROM_ABI bool operator>(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& …
405 template <class _Tp, size_t _Size>
406 inline _LIBCPP_HIDE_FROM_ABI bool operator<=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>&…
410 template <class _Tp, size_t _Size>
411 inline _LIBCPP_HIDE_FROM_ABI bool operator>=(const array<_Tp, _Size>& __x, const array<_Tp, _Size>&…
417 template <class _Tp, size_t _Size>
419 operator<=>(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y) {
426 template <class _Tp, size_t _Size, __enable_if_t<_Size == 0 || __is_swappable<_Tp>::value, int> = 0>
427 …DE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void swap(array<_Tp, _Size>& __x, array<_Tp, _Size>& __y)
432 template <class _Tp, size_t _Size>
433 struct _LIBCPP_TEMPLATE_VIS tuple_size<array<_Tp, _Size> > : public integral_constant<size_t, _Size…
435 template <size_t _Ip, class _Tp, size_t _Size>
436 struct _LIBCPP_TEMPLATE_VIS tuple_element<_Ip, array<_Tp, _Size> > {
437 static_assert(_Ip < _Size, "Index out of bounds in std::tuple_element<> (std::array)");
441 template <size_t _Ip, class _Tp, size_t _Size>
442 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp& get(array<_Tp, _Size>& __a) _NOEXCE…
443 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array)");
447 template <size_t _Ip, class _Tp, size_t _Size>
448 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const _Tp& get(const array<_Tp, _Size>& …
449 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (const std::array)");
453 template <size_t _Ip, class _Tp, size_t _Size>
454 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp&& get(array<_Tp, _Size>&& __a) _NOEX…
455 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (std::array &&)");
459 template <size_t _Ip, class _Tp, size_t _Size>
460 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const _Tp&& get(const array<_Tp, _Size>&…
461 static_assert(_Ip < _Size, "Index out of bounds in std::get<> (const std::array &&)");
467 template <typename _Tp, size_t _Size, size_t... _Index>
468 _LIBCPP_HIDE_FROM_ABI constexpr array<remove_cv_t<_Tp>, _Size>
469 __to_array_lvalue_impl(_Tp (&__arr)[_Size], index_sequence<_Index...>) {
473 template <typename _Tp, size_t _Size, size_t... _Index>
474 _LIBCPP_HIDE_FROM_ABI constexpr array<remove_cv_t<_Tp>, _Size>
475 __to_array_rvalue_impl(_Tp (&&__arr)[_Size], index_sequence<_Index...>) {
479 template <typename _Tp, size_t _Size>
480 _LIBCPP_HIDE_FROM_ABI constexpr array<remove_cv_t<_Tp>, _Size>
481 to_array(_Tp (&__arr)[_Size]) noexcept(is_nothrow_constructible_v<_Tp, _Tp&>) {
484 return std::__to_array_lvalue_impl(__arr, make_index_sequence<_Size>());
487 template <typename _Tp, size_t _Size>
488 _LIBCPP_HIDE_FROM_ABI constexpr array<remove_cv_t<_Tp>, _Size>
489 to_array(_Tp (&&__arr)[_Size]) noexcept(is_nothrow_move_constructible_v<_Tp>) {
492 return std::__to_array_rvalue_impl(std::move(__arr), make_index_sequence<_Size>());