# HG changeset patch
# User alpar
# Date 1111056417 0
# Node ID decf8076d63cf9e43be410f9f31f30d3216b6e2b
# Parent  a3fb216a267d1900db73094fb7ba477f068a8596
MapFunctor is made an STL standard compliant functor.

diff -r a3fb216a267d -r decf8076d63c src/lemon/maps.h
--- a/src/lemon/maps.h	Thu Mar 17 10:43:57 2005 +0000
+++ b/src/lemon/maps.h	Thu Mar 17 10:46:57 2005 +0000
@@ -696,7 +696,8 @@
   ///This class Converts a map to an STL style (unary) functor.
   ///that is it provides an <tt>operator()</tt> to read its values.
   ///
-  ///For the sake of convenience it also works as a ususal map, i.e
+  ///For the sake of convenience it also works as
+  ///a ususal \ref concept::ReadMap "readable map", i.e
   ///<tt>operator[]</tt> and the \c Key and \c Value typedefs also exist.
 
   template<class M> 
@@ -704,6 +705,8 @@
   {
     const M &m;
   public:
+    typedef typename M::Key argument_type;
+    typedef typename M::Value result_type;
     typedef typename M::Key Key;
     typedef typename M::Value Value;