Public Types | Public Member Functions | Related Functions

FalseMap< K > Class Template Reference


Detailed Description

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

This read-only map assigns false to each key.

Note that

   FalseMap<K> fm;

is equivalent to

   ConstMap<K,bool> fm(false);
See also:
TrueMap
ConstMap

#include <lemon/maps.h>

Inheritance diagram for FalseMap< K >:

List of all members.

Public Types

typedef K Key
 
typedef bool Value
 

Public Member Functions

Value operator[] (const Key &) const
 Gives back false.

Related Functions

(Note that these are not member functions.)
template<typename K >
FalseMap< K > falseMap ()
 Returns a FalseMap class.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines