LEMON 1.0.7
Public Member Functions | Related Functions

NullMap< K, V > Class Template Reference


Detailed Description

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

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 the ReadWriteMap concept.

See also:
ConstMap

#include <lemon/maps.h>

Inheritance diagram for NullMap< K, V >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Value operator[] (const Key &) const
 Gives back a default constructed element.
void set (const Key &, const Value &)
 Absorbs the value.

Related Functions

(Note that these are not member functions.)
template<typename K , typename V >
NullMap< K, V > nullMap ()
 Returns a NullMap class.

The documentation for this class was generated from the following file: