#include <lemon/maps.h>
std::map
. With addition that you can specify a default value different from Value()
.
Public Types | |
typedef K | Key |
| |
typedef T | Value |
| |
typedef T & | Reference |
| |
typedef const T & | ConstReference |
| |
Public Member Functions | |
StdMap (const T &_v) | |
Constructor with specified default value. | |
StdMap (const parent &m) | |
Constructs the map from an appropriate std::map. | |
StdMap (const parent &m, const T &_v) | |
Constructs the map from an appropriate std::map, and explicitly specifies a default value. | |
T | setDefault (const T &_v) |
StdMap | ( | const parent & | m | ) | [inline] |
m
! StdMap | ( | const parent & | m, | |
const T & | _v | |||
) | [inline] |
m
!
T setDefault | ( | const T & | _v | ) | [inline] |
Changes the default value of the map.