A generic dynamic array container that manages a sequence of elements of type T, providing memory management, element access, and basic list operations with error handling. More...
#include <List.h>
Public Types | |
| enum class | Result { Success , OutOfMemory , OutOfRange , InvalidArgument } |
| using | value_type = T |
| using | size_type = std::size_t |
| using | difference_type = std::ptrdiff_t |
| using | reference = T& |
| using | const_reference = const T& |
| using | pointer = T* |
| using | const_pointer = const T* |
| using | iterator = T* |
| using | const_iterator = const T* |
| using | reverse_iterator = std::reverse_iterator<iterator> |
| using | const_reverse_iterator = std::reverse_iterator<const_iterator> |
Public Member Functions | |
| List () noexcept | |
| List (size_type count) noexcept | |
| List (size_type count, const T &value) noexcept | |
| template<typename InputIt> | |
| List (InputIt first, InputIt last) noexcept | |
| List (std::initializer_list< T > init) noexcept | |
| List (const List &other) noexcept | |
| List (List &&other) noexcept | |
| ~List () | |
| bool | is_valid () const noexcept |
| List & | operator= (const List &other) noexcept |
| List & | operator= (List &&other) noexcept |
| List & | operator= (std::initializer_list< T > init) noexcept |
| Result | assign (size_type count, const T &value) noexcept |
| template<typename InputIt> | |
| Result | assign (InputIt first, InputIt last) noexcept |
| Result | assign (std::initializer_list< T > init) noexcept |
| Result | at (size_type pos, reference &out) noexcept |
| Result | at (size_type pos, const_reference &out) const noexcept |
| reference | operator[] (size_type pos) noexcept |
| const_reference | operator[] (size_type pos) const noexcept |
| T * | get (size_type pos) noexcept |
| const T * | get (size_type pos) const noexcept |
| reference | front () noexcept |
| const_reference | front () const noexcept |
| reference | back () noexcept |
| const_reference | back () const noexcept |
| T * | data () noexcept |
| const T * | data () const noexcept |
| iterator | begin () noexcept |
| const_iterator | begin () const noexcept |
| const_iterator | cbegin () const noexcept |
| iterator | end () noexcept |
| const_iterator | end () const noexcept |
| const_iterator | cend () const noexcept |
| reverse_iterator | rbegin () noexcept |
| const_reverse_iterator | rbegin () const noexcept |
| const_reverse_iterator | crbegin () const noexcept |
| reverse_iterator | rend () noexcept |
| const_reverse_iterator | rend () const noexcept |
| const_reverse_iterator | crend () const noexcept |
| bool | empty () const noexcept |
| size_type | size () const noexcept |
| size_type | max_size () const noexcept |
| Result | reserve (size_type new_capacity) noexcept |
| size_type | capacity () const noexcept |
| Result | shrink_to_fit () noexcept |
| void | clear () noexcept |
| Result | push_back (const T &value) noexcept |
| Result | push_back (T &&value) noexcept |
| template<typename... Args> | |
| Result | emplace_back (Args &&... args) noexcept |
| Result | pop_back () noexcept |
| Result | resize (size_type count) noexcept |
| Result | resize (size_type count, const T &value) noexcept |
| void | swap (List &other) noexcept |
| Result | insert (size_type pos, const T &value) noexcept |
| Result | erase (size_type pos) noexcept |
A generic dynamic array container that manages a sequence of elements of type T, providing memory management, element access, and basic list operations with error handling.
| T | The type of elements stored in the list. |
| using Hubris::List< T >::const_iterator = const T* |
| using Hubris::List< T >::const_pointer = const T* |
| using Hubris::List< T >::const_reference = const T& |
| using Hubris::List< T >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
| using Hubris::List< T >::difference_type = std::ptrdiff_t |
| using Hubris::List< T >::iterator = T* |
| using Hubris::List< T >::pointer = T* |
| using Hubris::List< T >::reference = T& |
| using Hubris::List< T >::reverse_iterator = std::reverse_iterator<iterator> |
| using Hubris::List< T >::size_type = std::size_t |
| using Hubris::List< T >::value_type = T |
|
strong |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |