std::array< _Tp, _Nm > - A standard container for storing a fixed size sequence of elements.
Contents
Detailed Description
template<typename_Tp,std::size_t_Nm>
struct std::array< _Tp, _Nm >"A standard container for storing a fixed size sequence of elements.
Meets the requirements of a container, a reversible container, and a sequence.
Sets support random access iterators.
TemplateParametersTp Type of element. Required to be a complete type.
Nm Number of elements.
Name
std::array< _Tp, _Nm > - A standard container for storing a fixed size sequence of elements.
Synopsis
#include <array>
PublicTypestypedef const value_type * const_iteratortypedef const value_type * const_pointertypedef const value_type & const_referencetypedefstd::reverse_iterator< const_iterator > const_reverse_iteratortypedef std::ptrdiff_t difference_typetypedef value_type * iteratortypedef value_type * pointertypedef value_type & referencetypedefstd::reverse_iterator< iterator > reverse_iteratortypedef std::size_t size_typetypedef _Tp value_typePublicMemberFunctions
constexpr reference at (size_type __n)
constexpr const_reference at (size_type __n) const
constexpr const_reference back () const noexcept
constexpr reference back () noexcept
constexpr const_iterator begin () const noexcept
constexpr iterator begin () noexcept
constexpr const_iterator cbegin () const noexcept
constexpr const_iterator cend () const noexcept
constexpr const_reverse_iteratorcrbegin () const noexcept
constexpr const_reverse_iteratorcrend () const noexcept
constexpr const_pointer data () const noexcept
constexpr pointer data () noexcept
constexpr bool empty () const noexcept
constexpr const_iterator end () const noexcept
constexpr iterator end () noexcept
constexpr voidfill (const value_type &__u)
constexpr const_reference front () const noexcept
constexpr reference front () noexcept
constexpr size_type max_size () const noexcept
constexpr const_reference operator[] (size_type __n) const noexcept
constexpr reference operator[] (size_type __n) noexcept
constexpr const_reverse_iteratorrbegin () const noexcept
constexpr reverse_iteratorrbegin () noexcept
constexpr const_reverse_iteratorrend () const noexcept
constexpr reverse_iteratorrend () noexcept
constexpr size_type size () const noexcept
constexpr voidswap (array &__other) noexcept(__array_traits< _Tp, _Nm >::_Is_nothrow_swappable::value)
PublicAttributes
__array_traits< _Tp, _Nm >::_Type _M_elems