|
tvm
|
An STL-like map that preserves insertion order. More...
#include <ordered_map.h>
Public Member Functions | |
| OrderedMap ()=default | |
| OrderedMap (const OrderedMap< K, V, Hash, KeyEqual > &other) | |
| OrderedMap & | operator= (const OrderedMap< K, V, Hash, KeyEqual > &other) |
| OrderedMap (OrderedMap< K, V, Hash, KeyEqual > &&)=default | |
| OrderedMap & | operator= (OrderedMap< K, V, Hash, KeyEqual > &&)=default |
| template<typename Iter > | |
| OrderedMap (Iter begin, Iter end) | |
| auto | find (const K &k) |
| auto | find (const K &k) const |
| V & | operator[] (const K &k) |
| void | insert (const K &k, V v) |
| void | clear () |
| size_t | count (const K &k) const |
| auto | begin () const |
| auto | end () const |
| auto | begin () |
| auto | end () |
| size_t | size () const |
| bool | empty () const |
| void | reserve (size_t n) |
An STL-like map that preserves insertion order.
| K | The key type. |
| V | The value type. |
| Hash | The hash function. |
| KeyEqual | The key equality function. |
|
default |
|
inline |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
inline |
|
inline |
|
inline |