Scroll to navigation

std::array< _Tp, _Nm >(3cxx) std::array< _Tp, _Nm >(3cxx)

NAME

std::array< _Tp, _Nm > - A standard container for storing a fixed size sequence of elements.

SYNOPSIS

#include <array>

Public Types


typedef ::__array_traits< _Tp, _Nm > _AT_Type
typedef const value_type * const_iterator
typedef const value_type * const_pointer
typedef const value_type & const_reference
typedef std::reverse_iterator< const_iterator > const_reverse_iterator
typedef std::ptrdiff_t difference_type
typedef value_type * iterator
typedef value_type * pointer
typedef value_type & reference
typedef std::reverse_iterator< iterator > reverse_iterator
typedef std::size_t size_type
typedef _Tp value_type

Public Member Functions


_GLIBCXX17_CONSTEXPR reference at (size_type __n)
constexpr const_reference at (size_type __n) const
constexpr const_reference back () const noexcept
_GLIBCXX17_CONSTEXPR reference back () noexcept
_GLIBCXX17_CONSTEXPR const_iterator begin () const noexcept
_GLIBCXX17_CONSTEXPR iterator begin () noexcept
_GLIBCXX17_CONSTEXPR const_iterator cbegin () const noexcept
_GLIBCXX17_CONSTEXPR const_iterator cend () const noexcept
_GLIBCXX17_CONSTEXPR const_reverse_iterator crbegin () const noexcept
_GLIBCXX17_CONSTEXPR const_reverse_iterator crend () const noexcept
_GLIBCXX17_CONSTEXPR const_pointer data () const noexcept
_GLIBCXX17_CONSTEXPR pointer data () noexcept
_GLIBCXX_NODISCARD constexpr bool empty () const noexcept
_GLIBCXX17_CONSTEXPR const_iterator end () const noexcept
_GLIBCXX17_CONSTEXPR iterator end () noexcept
void fill (const value_type &__u)
constexpr const_reference front () const noexcept
_GLIBCXX17_CONSTEXPR reference front () noexcept
constexpr size_type max_size () const noexcept
constexpr const_reference operator[] (size_type __n) const noexcept
_GLIBCXX17_CONSTEXPR reference operator[] (size_type __n) noexcept
_GLIBCXX17_CONSTEXPR const_reverse_iterator rbegin () const noexcept
_GLIBCXX17_CONSTEXPR reverse_iterator rbegin () noexcept
_GLIBCXX17_CONSTEXPR const_reverse_iterator rend () const noexcept
_GLIBCXX17_CONSTEXPR reverse_iterator rend () noexcept
constexpr size_type size () const noexcept
void swap (array &__other) noexcept(_AT_Type::_Is_nothrow_swappable::value)

Public Attributes


_AT_Type::_Type _M_elems

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.

Template Parameters

Tp Type of element. Required to be a complete type.
N Number of elements.

Definition at line 94 of file array.

Member Typedef Documentation

template<typename _Tp , std::size_t _Nm> typedef ::__array_traits<_Tp, _Nm> std::array< _Tp, _Nm >::_AT_Type

Definition at line 109 of file array.

template<typename _Tp , std::size_t _Nm> typedef const value_type* std::array< _Tp, _Nm >::const_iterator

Definition at line 102 of file array.

template<typename _Tp , std::size_t _Nm> typedef const value_type* std::array< _Tp, _Nm >::const_pointer

Definition at line 98 of file array.

template<typename _Tp , std::size_t _Nm> typedef const value_type& std::array< _Tp, _Nm >::const_reference

Definition at line 100 of file array.

template<typename _Tp , std::size_t _Nm> typedef std::reverse_iterator<const_iterator> std::array< _Tp, _Nm >::const_reverse_iterator

Definition at line 106 of file array.

template<typename _Tp , std::size_t _Nm> typedef std::ptrdiff_t std::array< _Tp, _Nm >::difference_type

Definition at line 104 of file array.

template<typename _Tp , std::size_t _Nm> typedef value_type* std::array< _Tp, _Nm >::iterator

Definition at line 101 of file array.

template<typename _Tp , std::size_t _Nm> typedef value_type* std::array< _Tp, _Nm >::pointer

Definition at line 97 of file array.

template<typename _Tp , std::size_t _Nm> typedef value_type& std::array< _Tp, _Nm >::reference

Definition at line 99 of file array.

template<typename _Tp , std::size_t _Nm> typedef std::reverse_iterator<iterator> std::array< _Tp, _Nm >::reverse_iterator

Definition at line 105 of file array.

template<typename _Tp , std::size_t _Nm> typedef std::size_t std::array< _Tp, _Nm >::size_type

Definition at line 103 of file array.

template<typename _Tp , std::size_t _Nm> typedef _Tp std::array< _Tp, _Nm >::value_type

Definition at line 96 of file array.

Member Function Documentation

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR reference std::array< _Tp, _Nm >::at (size_type __n) [inline]

Definition at line 193 of file array.

template<typename _Tp , std::size_t _Nm> constexpr const_reference std::array< _Tp, _Nm >::at (size_type __n) const [inline], [constexpr]

Definition at line 203 of file array.

template<typename _Tp , std::size_t _Nm> constexpr const_reference std::array< _Tp, _Nm >::back () const [inline], [constexpr], [noexcept]

Definition at line 227 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR reference std::array< _Tp, _Nm >::back () [inline], [noexcept]

Definition at line 223 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR const_iterator std::array< _Tp, _Nm >::begin () const [inline], [noexcept]

Definition at line 130 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR iterator std::array< _Tp, _Nm >::begin () [inline], [noexcept]

Definition at line 126 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR const_iterator std::array< _Tp, _Nm >::cbegin () const [inline], [noexcept]

Definition at line 158 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR const_iterator std::array< _Tp, _Nm >::cend () const [inline], [noexcept]

Definition at line 162 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR const_reverse_iterator std::array< _Tp, _Nm >::crbegin () const [inline], [noexcept]

Definition at line 166 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR const_reverse_iterator std::array< _Tp, _Nm >::crend () const [inline], [noexcept]

Definition at line 170 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR const_pointer std::array< _Tp, _Nm >::data () const [inline], [noexcept]

Definition at line 238 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR pointer std::array< _Tp, _Nm >::data () [inline], [noexcept]

Definition at line 234 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX_NODISCARD constexpr bool std::array< _Tp, _Nm >::empty () const [inline], [constexpr], [noexcept]

Definition at line 181 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR const_iterator std::array< _Tp, _Nm >::end () const [inline], [noexcept]

Definition at line 138 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR iterator std::array< _Tp, _Nm >::end () [inline], [noexcept]

Definition at line 134 of file array.

template<typename _Tp , std::size_t _Nm> void std::array< _Tp, _Nm >::fill (const value_type & __u) [inline]

Definition at line 116 of file array.

template<typename _Tp , std::size_t _Nm> constexpr const_reference std::array< _Tp, _Nm >::front () const [inline], [constexpr], [noexcept]

Definition at line 219 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR reference std::array< _Tp, _Nm >::front () [inline], [noexcept]

Definition at line 215 of file array.

template<typename _Tp , std::size_t _Nm> constexpr size_type std::array< _Tp, _Nm >::max_size () const [inline], [constexpr], [noexcept]

Definition at line 178 of file array.

template<typename _Tp , std::size_t _Nm> constexpr const_reference std::array< _Tp, _Nm >::operator[] (size_type __n) const [inline], [constexpr], [noexcept]

Definition at line 189 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR reference std::array< _Tp, _Nm >::operator[] (size_type __n) [inline], [noexcept]

Definition at line 185 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR const_reverse_iterator std::array< _Tp, _Nm >::rbegin () const [inline], [noexcept]

Definition at line 146 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR reverse_iterator std::array< _Tp, _Nm >::rbegin () [inline], [noexcept]

Definition at line 142 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR const_reverse_iterator std::array< _Tp, _Nm >::rend () const [inline], [noexcept]

Definition at line 154 of file array.

template<typename _Tp , std::size_t _Nm> _GLIBCXX17_CONSTEXPR reverse_iterator std::array< _Tp, _Nm >::rend () [inline], [noexcept]

Definition at line 150 of file array.

template<typename _Tp , std::size_t _Nm> constexpr size_type std::array< _Tp, _Nm >::size () const [inline], [constexpr], [noexcept]

Definition at line 175 of file array.

template<typename _Tp , std::size_t _Nm> void std::array< _Tp, _Nm >::swap (array< _Tp, _Nm > & __other) [inline], [noexcept]

Definition at line 120 of file array.

Member Data Documentation

template<typename _Tp , std::size_t _Nm> _AT_Type::_Type std::array< _Tp, _Nm >::_M_elems

Definition at line 110 of file array.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

libstdc++