This read-only map assigns true to each key.
Note that
TrueMap<K> tm;
is equivalent to
ConstMap<K,bool> tm(true);
#include <lemon/maps.h>
Inheritance diagram for TrueMap< K >:Public Types | |
| typedef K | Key |
| | |
| typedef bool | Value |
| | |
Public Member Functions | |
| Value | operator[] (const Key &) const |
Gives back true. | |
Related Functions | |
| (Note that these are not member functions.) | |
| template<typename K > | |
| TrueMap< K > | trueMap () |
Returns a TrueMap class. | |
1.7.3