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

Constant false map. More...

#include <lemon/maps.h>

Inheritance diagram for FalseMap< 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 false.

(Note that these are not member symbols.)

template< typename K >
FalseMap< K > falseMap ()
 Returns a FalseMap class.

Detailed Description

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

This read-only map assigns false to each key.

Note that

Constant false map.
Definition maps.h:1484

is equivalent to

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