|
RavEngine
|
#include <unordered_vector.hpp>
Public Types | |
| typedef decltype(underlying) ::iterator | iterator_type |
| typedef decltype(underlying) ::const_iterator | const_iterator_type |
| typedef decltype(underlying) ::size_type | index_type |
| typedef decltype(underlying) ::size_type | size_type |
| using | value_type = T |
Public Member Functions | |
| const_iterator_type | erase (iterator_type it) |
| auto & | get_underlying () |
| const_iterator_type | erase (const T &value) |
| T & | insert (const T &value) |
| template<typename ... A> | |
| T & | emplace (A &&... args) |
| T & | operator[] (index_type idx) |
| const T & | operator[] (index_type idx) const |
| T & | at (index_type idx) |
| const T & | at (index_type idx) const |
| const_iterator_type | begin () const |
| const_iterator_type | end () const |
| iterator_type | end () |
| iterator_type | begin () |
| size_type | size () const |
| void | reserve (size_t num) |
| void | resize (size_t num) |
| bool | empty () const |
| void | clear () |
| auto | data () const |
The Unordered Vector provides:
|
inline |
Add an item to the container
| value | the data to add |
|
inline |
Erase by value. Complexity is O(n)
| value | the data to erase |
|
inline |
Erase by iterator. Complexity is O(1).
| it | the iterator to erase |
|
inline |
|
inline |
Add an item to the container
| value | the data to add |