uTL
micro Template library
|
A standard container for storing a fixed size sequence of elements. More...
#include <array.h>
Public Types | |
using | value_type = _Tp |
using | pointer = value_type * |
using | const_pointer = const value_type * |
using | reference = value_type & |
using | const_reference = const value_type & |
using | iterator = value_type * |
using | const_iterator = const value_type * |
using | size_type = size_t |
using | difference_type = ptrdiff_t |
using | reverse_iterator = std::reverse_iterator< iterator > |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
using | array_t = array_traits< _Tp, _Nm > |
Public Member Functions | |
void | fill (const value_type &v) |
void | swap (array &other) noexcept |
Iterators. | |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
reverse_iterator | rbegin () noexcept |
reverse_iterator | rend () noexcept |
const_reverse_iterator | rbegin () const noexcept |
const_reverse_iterator | rend () const noexcept |
const_reverse_iterator | crbegin () const noexcept |
const_reverse_iterator | crend () const noexcept |
Capacity. | |
constexpr size_type | size () const noexcept |
constexpr size_type | max_size () const noexcept |
constexpr bool | empty () const noexcept |
Element access. | |
reference | operator[] (size_type n) noexcept |
Operator []. More... | |
constexpr const_reference | operator[] (size_type n) const noexcept |
Operator [] for const. More... | |
reference | at (size_type n) noexcept |
constexpr const_reference | at (size_type n) const noexcept |
Compile time boundary check dereference operator. More... | |
reference | front () noexcept |
constexpr const_reference | front () const noexcept |
reference | back () noexcept |
constexpr const_reference | back () const noexcept |
pointer | data () noexcept |
const_pointer | data () const noexcept |
Public Attributes | |
array_t::type | _data |
A standard container for storing a fixed size sequence of elements.
Meets the requirements of: container, reversible container, sequence. Sets support random access iterators.
_Tp | type of element. Required to be a complete type. |
_Nm | Number of elements. |
using utl::array< _Tp, _Nm >::array_t = array_traits<_Tp, _Nm> |
using utl::array< _Tp, _Nm >::const_iterator = const value_type* |
using utl::array< _Tp, _Nm >::const_pointer = const value_type* |
using utl::array< _Tp, _Nm >::const_reference = const value_type& |
using utl::array< _Tp, _Nm >::const_reverse_iterator = std::reverse_iterator <const_iterator> |
using utl::array< _Tp, _Nm >::difference_type = ptrdiff_t |
using utl::array< _Tp, _Nm >::iterator = value_type* |
using utl::array< _Tp, _Nm >::pointer = value_type* |
using utl::array< _Tp, _Nm >::reference = value_type& |
using utl::array< _Tp, _Nm >::reverse_iterator = std::reverse_iterator <iterator> |
using utl::array< _Tp, _Nm >::size_type = size_t |
using utl::array< _Tp, _Nm >::value_type = _Tp |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
array_t::type utl::array< _Tp, _Nm >::_data |