Array list. More...
#include <playrho/ArrayList.hpp>
Public Types | |
using | const_iterator = const value_type * |
Constant iterator type. | |
using | const_pointer = const value_type * |
Constant pointer type. | |
using | const_reference = const value_type & |
Constant reference type. | |
using | iterator = value_type * |
Iterator type. | |
using | pointer = value_type * |
Pointer type. | |
using | reference = value_type & |
Reference type. | |
using | size_type = SIZE_TYPE |
Size type. | |
using | value_type = T |
Value type. | |
Public Member Functions | |
constexpr | ArrayList () noexcept=default |
Default constructor. More... | |
constexpr | ArrayList (const ArrayList &other) noexcept(std::is_nothrow_copy_assignable_v< T >)=default |
Copy constructor. | |
constexpr | ArrayList (const Span< const value_type > &list) |
Initializing constructor. | |
constexpr | ArrayList (std::initializer_list< value_type > list) |
Initializing constructor from initializer list. More... | |
Array list.
This is a std::array
backed std::vector
like container. It provides vector like behavior whose max size is capped at the size given by the template max size parameter without using dynamic storage.
|
constexprdefaultnoexcept |
Default constructor.
|
inlineconstexpr |
Initializing constructor from initializer list.
LengthError | if operation would exceed max_size() . |