this maps support erasing elements, Alert inefficient!! More...
#include <bimap.hpp>
Public Member Functions | |
| void | erase (const T &t) |
| erases element (takes linear time) More... | |
Public Member Functions inherited from paal::data_structures::bimap< T, Idx > | |
| template<typename Range > | |
| bimap (Range &&range) | |
| constructor More... | |
| Idx | get_idx (const T &t) const |
| gets index of element t More... | |
| const T & | get_val (Idx i) const |
| get value for index i More... | |
| std::size_t | size () const |
| number of elements More... | |
| Idx | add (const T &t) |
| adds element to collection More... | |
| std::pair< Iterator, Iterator > | get_range () const |
| get range of all element, index pairs More... | |
Additional Inherited Members | |
Public Types inherited from paal::data_structures::bimap< T, Idx > | |
| typedef TToID::const_iterator | Iterator |
Protected Attributes inherited from paal::data_structures::bimap< T, Idx > | |
| std::vector< T > | m_id_to_t |
| mapping from id to element | |
| TToID | m_t_to_id |
| mapping from elements to ids | |
this maps support erasing elements, Alert inefficient!!
| T | |
| Idx |
|
inline |
1.8.5