Public Types | Public Member Functions | Related Functions

IdentityMap< T > Class Template Reference


Detailed Description

template<typename T>
class lemon::IdentityMap< T >

This read-only map gives back the given key as value without any modification.

See also:
ConstMap

#include <lemon/maps.h>

Inheritance diagram for IdentityMap< T >:

List of all members.

Public Types

typedef T Key
 
typedef T Value
 

Public Member Functions

Value operator[] (const Key &k) const
 Gives back the given value without any modification.

Related Functions

(Note that these are not member functions.)
template<typename T >
IdentityMap< T > identityMap ()
 Returns an IdentityMap class.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines