TrueMap

Declared in lemon/maps.h, in the group Maps; the same class on the Doxygen site.

template< typename K >
class TrueMap : public MapBase< K , bool >

Constant true map.

This read-only map assigns true to each key.

Note that

TrueMap< K > tm;
is equivalent to
ConstMap< K , bool > tm( true );

See also

FalseMap

See also

ConstMap

Public Types

typedef K Key

typedef bool Value

Public Functions

inline Value operator[]( const Key & ) const

Gives back true.