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

Logical 'not' of a map. More...

#include <lemon/maps.h>

Inheritance diagram for NotMap< M >:

Public Types

typedef M::Key Key
 
typedef bool Value
 
Public Types inherited from MapBase< M::Key , bool >
typedef M::Key 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

 NotMap (const M &m)
 Constructor.
Value operator[] (const Key &k) const
 

(Note that these are not member symbols.)

template< typename M >
NotMap< M > notMap (const M &m)
 Returns a NotMap class.

Detailed Description

template< typename M >
class lemon::NotMap< M >

This read-only map returns the logical negation of the values of the given map. Its Key is inherited from M and its Value is bool.

The simplest way of using this map is through the notMap() function.

See also
NotWriteMap