Non-ordered map implementation that uses simple std::vector to store the elements. More...
#include <Radiant/ArrayMap.hpp>
Public Member Functions | |
| ArrayMap (int reserve) | |
| ArrayMap (std::size_t reserve) | |
| ArrayMap (const ArrayMap &map) | |
| ArrayMap (ArrayMap &&map) | |
| template<typename it > | |
| ArrayMap (it first, it last) | |
| template<typename Y > | |
| ArrayMap (const Y &map) | |
| iterator | begin () |
| const_iterator | begin () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| void | clear () |
| bool | contains (const Key &key) const |
| std::size_t | count (const Key &key) const |
| const_reverse_iterator | crbegin () const |
| const_reverse_iterator | crend () const |
| bool | empty () const |
| iterator | end () |
| const_iterator | end () const |
| iterator | erase (iterator it) |
| std::size_t | erase (const Key &key) |
| iterator | find (const Key &key) |
| const_iterator | find (const Key &key) const |
| void | insert (const value_type &value) |
| void | insert (value_type &&value) |
| bool | isEmpty () const |
| bool | operator!= (const ArrayMap &map) const |
| ArrayMap & | operator= (const ArrayMap &map) |
| ArrayMap & | operator= (ArrayMap &&map) |
| template<typename Y > | |
| void | operator= (const Y &map) |
| bool | operator== (const ArrayMap &map) const |
| T & | operator[] (const Key &key) |
| T & | operator[] (Key &&key) |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| std::size_t | size () const |
| void | swap (ArrayMap &other) |
| T | value (const Key &key) const |
Non-ordered map implementation that uses simple std::vector to store the elements.
This can be used instead of std::map when number is elements is small. Never use this class unless you have profiled that it actually makes a difference!
Notice that all non-const operations might invalidate all iterators.