LEMON 1.0.7
|
This readable map assigns a specified value to each key.
In other aspects it is equivalent to NullMap
. So it conforms the ReadWriteMap concept, but it absorbs the data written to it.
The simplest way of using this map is through the constMap() function.
#include <lemon/maps.h>
Public Member Functions | |
ConstMap () | |
Constructor. | |
Value | operator[] (const Key &) const |
Gives back the specified value. | |
void | set (const Key &, const Value &) |
Absorbs the value. |