NullMap

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

template< typename K , typename V >
class NullMap : public lemon::MapBase< K , V >

Null map. (a.k.a. DoNothingMap).

This map can be used if you have to provide a map only for its type definitions, or if you have to provide a writable map, but data written to it is not required (i.e. it will be sent to /dev/null). It conforms to the ReadWriteMap concept.

See also

ConstMap

Public Types

typedef K Key

typedef V Value

Public Functions

inline Value operator[]( const Key & ) const

Gives back a default constructed element.

inline void set( const Key & , const Value & )

Absorbs the value.