.TH "std::array< _Tp, _Nm >" 3cxx "Sun Jan 8 2023" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::array< _Tp, _Nm > \- A standard container for storing a fixed size sequence of elements\&. .SH SYNOPSIS .br .PP .SS "Public Types" .in +1c .ti -1c .RI "typedef __array_traits< _Tp, _Nm > \fB_AT_Type\fP" .br .ti -1c .RI "typedef const value_type * \fBconst_iterator\fP" .br .ti -1c .RI "typedef const value_type * \fBconst_pointer\fP" .br .ti -1c .RI "typedef const value_type & \fBconst_reference\fP" .br .ti -1c .RI "typedef \fBstd::reverse_iterator\fP< const_iterator > \fBconst_reverse_iterator\fP" .br .ti -1c .RI "typedef std::ptrdiff_t \fBdifference_type\fP" .br .ti -1c .RI "typedef value_type * \fBiterator\fP" .br .ti -1c .RI "typedef value_type * \fBpointer\fP" .br .ti -1c .RI "typedef value_type & \fBreference\fP" .br .ti -1c .RI "typedef \fBstd::reverse_iterator\fP< iterator > \fBreverse_iterator\fP" .br .ti -1c .RI "typedef std::size_t \fBsize_type\fP" .br .ti -1c .RI "typedef _Tp \fBvalue_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "constexpr reference \fBat\fP (size_type __n)" .br .ti -1c .RI "constexpr const_reference \fBat\fP (size_type __n) const" .br .ti -1c .RI "constexpr const_reference \fBback\fP () const noexcept" .br .ti -1c .RI "constexpr reference \fBback\fP () noexcept" .br .ti -1c .RI "constexpr const_iterator \fBbegin\fP () const noexcept" .br .ti -1c .RI "constexpr iterator \fBbegin\fP () noexcept" .br .ti -1c .RI "constexpr const_iterator \fBcbegin\fP () const noexcept" .br .ti -1c .RI "constexpr const_iterator \fBcend\fP () const noexcept" .br .ti -1c .RI "constexpr \fBconst_reverse_iterator\fP \fBcrbegin\fP () const noexcept" .br .ti -1c .RI "constexpr \fBconst_reverse_iterator\fP \fBcrend\fP () const noexcept" .br .ti -1c .RI "constexpr const_pointer \fBdata\fP () const noexcept" .br .ti -1c .RI "constexpr pointer \fBdata\fP () noexcept" .br .ti -1c .RI "constexpr bool \fBempty\fP () const noexcept" .br .ti -1c .RI "constexpr const_iterator \fBend\fP () const noexcept" .br .ti -1c .RI "constexpr iterator \fBend\fP () noexcept" .br .ti -1c .RI "constexpr void \fBfill\fP (const value_type &__u)" .br .ti -1c .RI "constexpr const_reference \fBfront\fP () const noexcept" .br .ti -1c .RI "constexpr reference \fBfront\fP () noexcept" .br .ti -1c .RI "constexpr size_type \fBmax_size\fP () const noexcept" .br .ti -1c .RI "constexpr const_reference \fBoperator[]\fP (size_type __n) const noexcept" .br .ti -1c .RI "constexpr reference \fBoperator[]\fP (size_type __n) noexcept" .br .ti -1c .RI "constexpr \fBconst_reverse_iterator\fP \fBrbegin\fP () const noexcept" .br .ti -1c .RI "constexpr \fBreverse_iterator\fP \fBrbegin\fP () noexcept" .br .ti -1c .RI "constexpr \fBconst_reverse_iterator\fP \fBrend\fP () const noexcept" .br .ti -1c .RI "constexpr \fBreverse_iterator\fP \fBrend\fP () noexcept" .br .ti -1c .RI "constexpr size_type \fBsize\fP () const noexcept" .br .ti -1c .RI "constexpr void \fBswap\fP (\fBarray\fP &__other) noexcept(_AT_Type::_Is_nothrow_swappable::value)" .br .in -1c .SS "Public Attributes" .in +1c .ti -1c .RI "_AT_Type::_Type \fB_M_elems\fP" .br .in -1c .SH "Detailed Description" .PP .SS "template .br struct std::array< _Tp, _Nm >"A standard container for storing a fixed size sequence of elements\&. Meets the requirements of a \fCcontainer\fP, a \fCreversible container\fP, and a \fCsequence\fP\&. .PP Sets support random access iterators\&. .PP \fBTemplate Parameters\fP .RS 4 \fITp\fP Type of element\&. Required to be a complete type\&. .br \fINm\fP Number of elements\&. .RE .PP .PP Definition at line \fB99\fP of file \fBarray\fP\&. .SH "Member Typedef Documentation" .PP .SS "template typedef __array_traits<_Tp, _Nm> \fBstd::array\fP< _Tp, _Nm >::_AT_Type" .PP Definition at line \fB114\fP of file \fBarray\fP\&. .SS "template typedef const value_type* \fBstd::array\fP< _Tp, _Nm >::const_iterator" .PP Definition at line \fB107\fP of file \fBarray\fP\&. .SS "template typedef const value_type* \fBstd::array\fP< _Tp, _Nm >::const_pointer" .PP Definition at line \fB103\fP of file \fBarray\fP\&. .SS "template typedef const value_type& \fBstd::array\fP< _Tp, _Nm >::const_reference" .PP Definition at line \fB105\fP of file \fBarray\fP\&. .SS "template typedef \fBstd::reverse_iterator\fP \fBstd::array\fP< _Tp, _Nm >::const_reverse_iterator" .PP Definition at line \fB111\fP of file \fBarray\fP\&. .SS "template typedef std::ptrdiff_t \fBstd::array\fP< _Tp, _Nm >::difference_type" .PP Definition at line \fB109\fP of file \fBarray\fP\&. .SS "template typedef value_type* \fBstd::array\fP< _Tp, _Nm >::iterator" .PP Definition at line \fB106\fP of file \fBarray\fP\&. .SS "template typedef value_type* \fBstd::array\fP< _Tp, _Nm >::pointer" .PP Definition at line \fB102\fP of file \fBarray\fP\&. .SS "template typedef value_type& \fBstd::array\fP< _Tp, _Nm >::reference" .PP Definition at line \fB104\fP of file \fBarray\fP\&. .SS "template typedef \fBstd::reverse_iterator\fP \fBstd::array\fP< _Tp, _Nm >::reverse_iterator" .PP Definition at line \fB110\fP of file \fBarray\fP\&. .SS "template typedef std::size_t \fBstd::array\fP< _Tp, _Nm >::size_type" .PP Definition at line \fB108\fP of file \fBarray\fP\&. .SS "template typedef _Tp \fBstd::array\fP< _Tp, _Nm >::value_type" .PP Definition at line \fB101\fP of file \fBarray\fP\&. .SH "Member Function Documentation" .PP .SS "template constexpr reference \fBstd::array\fP< _Tp, _Nm >::at (size_type __n)\fC [inline]\fP, \fC [constexpr]\fP" .PP Definition at line \fB223\fP of file \fBarray\fP\&. .SS "template constexpr const_reference \fBstd::array\fP< _Tp, _Nm >::at (size_type __n) const\fC [inline]\fP, \fC [constexpr]\fP" .PP Definition at line \fB233\fP of file \fBarray\fP\&. .SS "template constexpr const_reference \fBstd::array\fP< _Tp, _Nm >::back () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB272\fP of file \fBarray\fP\&. .SS "template constexpr reference \fBstd::array\fP< _Tp, _Nm >::back ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB264\fP of file \fBarray\fP\&. .SS "template constexpr const_iterator \fBstd::array\fP< _Tp, _Nm >::begin () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB137\fP of file \fBarray\fP\&. .SS "template constexpr iterator \fBstd::array\fP< _Tp, _Nm >::begin ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB132\fP of file \fBarray\fP\&. .SS "template constexpr const_iterator \fBstd::array\fP< _Tp, _Nm >::cbegin () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB172\fP of file \fBarray\fP\&. .SS "template constexpr const_iterator \fBstd::array\fP< _Tp, _Nm >::cend () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB177\fP of file \fBarray\fP\&. .SS "template constexpr \fBconst_reverse_iterator\fP \fBstd::array\fP< _Tp, _Nm >::crbegin () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB182\fP of file \fBarray\fP\&. .SS "template constexpr \fBconst_reverse_iterator\fP \fBstd::array\fP< _Tp, _Nm >::crend () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB187\fP of file \fBarray\fP\&. .SS "template constexpr const_pointer \fBstd::array\fP< _Tp, _Nm >::data () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB288\fP of file \fBarray\fP\&. .SS "template constexpr pointer \fBstd::array\fP< _Tp, _Nm >::data ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB283\fP of file \fBarray\fP\&. .SS "template constexpr bool \fBstd::array\fP< _Tp, _Nm >::empty () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB201\fP of file \fBarray\fP\&. .SS "template constexpr const_iterator \fBstd::array\fP< _Tp, _Nm >::end () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB147\fP of file \fBarray\fP\&. .SS "template constexpr iterator \fBstd::array\fP< _Tp, _Nm >::end ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB142\fP of file \fBarray\fP\&. .SS "template constexpr void \fBstd::array\fP< _Tp, _Nm >::fill (const value_type & __u)\fC [inline]\fP, \fC [constexpr]\fP" .PP Definition at line \fB121\fP of file \fBarray\fP\&. .SS "template constexpr const_reference \fBstd::array\fP< _Tp, _Nm >::front () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB254\fP of file \fBarray\fP\&. .SS "template constexpr reference \fBstd::array\fP< _Tp, _Nm >::front ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB246\fP of file \fBarray\fP\&. .SS "template constexpr size_type \fBstd::array\fP< _Tp, _Nm >::max_size () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB197\fP of file \fBarray\fP\&. .SS "template constexpr const_reference \fBstd::array\fP< _Tp, _Nm >::operator[] (size_type __n) const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB214\fP of file \fBarray\fP\&. .SS "template constexpr reference \fBstd::array\fP< _Tp, _Nm >::operator[] (size_type __n)\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB206\fP of file \fBarray\fP\&. .SS "template constexpr \fBconst_reverse_iterator\fP \fBstd::array\fP< _Tp, _Nm >::rbegin () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB157\fP of file \fBarray\fP\&. .SS "template constexpr \fBreverse_iterator\fP \fBstd::array\fP< _Tp, _Nm >::rbegin ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB152\fP of file \fBarray\fP\&. .SS "template constexpr \fBconst_reverse_iterator\fP \fBstd::array\fP< _Tp, _Nm >::rend () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB167\fP of file \fBarray\fP\&. .SS "template constexpr \fBreverse_iterator\fP \fBstd::array\fP< _Tp, _Nm >::rend ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB162\fP of file \fBarray\fP\&. .SS "template constexpr size_type \fBstd::array\fP< _Tp, _Nm >::size () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB193\fP of file \fBarray\fP\&. .SS "template constexpr void \fBstd::array\fP< _Tp, _Nm >::swap (\fBarray\fP< _Tp, _Nm > & __other)\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB125\fP of file \fBarray\fP\&. .SH "Member Data Documentation" .PP .SS "template _AT_Type::_Type \fBstd::array\fP< _Tp, _Nm >::_M_elems" .PP Definition at line \fB115\fP of file \fBarray\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.