emilib
|
Linear lookup map for quick lookups among few values. More...
#include <list_map.hpp>
Public Member Functions | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
size_t | size () const |
bool | empty () const |
iterator | find (const KeyT &key) |
const_iterator | find (const KeyT &key) const |
size_t | count (const KeyT &key) const |
ValueT & | operator[] (const KeyT &key) |
const ValueT & | at (const KeyT &key) const |
bool | insert (const Pair &p) |
void | insert_or_assign (const KeyT &key, ValueT &&value) |
iterator | erase (iterator it) |
void | erase (const KeyT &key) |
void | shrink_to_fit () |
Frees unnecessary memory. | |
void | clear () |
Linear lookup map for quick lookups among few values.