abLEMON 1.9.0-101-gccb8629
A maintained fork of LEMON
Loading...
Searching...
No Matches
TrueMap< K > Class Template Reference

Constant true map. More...

#include <lemon/maps.h>

Inheritance diagram for TrueMap< K >:

Public Types

typedef K Key
 
typedef bool Value
 
Public Types inherited from MapBase< K , bool >
typedef K Key
 The key type of the map.
typedef bool Value
 The value type of the map. (The type of objects associated with the keys).

Public Member Functions

Value operator[] (const Key &) const
 Gives back true.

(Note that these are not member symbols.)

template< typename K >
TrueMap< K > trueMap ()
 Returns a TrueMap class.

Detailed Description

template< typename K >
class lemon::TrueMap< K >

This read-only map assigns true to each key.

Note that

Constant true map.
Definition maps.h:1444

is equivalent to

Constant map.
Definition maps.h:110
See also
FalseMap
ConstMap