#include <lemon/maps.h>
Key
and Value
typedefs.
Template parameters K
and V
will become its Key
and Value
. In most cases they have to be given explicitly because a functor typically does not provide argument_type
and result_type
typedefs. Parameter F
is the type of the used functor.
The simplest way of using this map is through the functorToMap() function.
Public Member Functions | |
FunctorToMap (const F &f=F()) | |
Constructor. | |
Value | operator[] (const Key &k) const |
| |
Related Functions | |
(Note that these are not member functions.) | |
template<typename K, typename V, typename F> | |
FunctorToMap< F, K, V > | functorToMap (const F &f) |
Returns a FunctorToMap class. |