Structure used to count elements. More...
#include <counting-map.hpp>
Public Member Functions | |
size_t | increment (const Key &key) |
size_t | decrement (const Key &key) |
void | clear () |
size_t | get (const Key &key) const |
bool | empty () const |
Private Types | |
typedef std::unordered_map < Key, size_t > | Map |
Private Attributes | |
Map | mMap |
Structure used to count elements.
It's like multiset + count but is more efficient.
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |