MapFunctor is made an STL standard compliant functor.
authoralpar
Thu, 17 Mar 2005 10:46:57 +0000
changeset 1223decf8076d63c
parent 1222 a3fb216a267d
child 1224 7f4f2855fa11
MapFunctor is made an STL standard compliant functor.
src/lemon/maps.h
     1.1 --- a/src/lemon/maps.h	Thu Mar 17 10:43:57 2005 +0000
     1.2 +++ b/src/lemon/maps.h	Thu Mar 17 10:46:57 2005 +0000
     1.3 @@ -696,7 +696,8 @@
     1.4    ///This class Converts a map to an STL style (unary) functor.
     1.5    ///that is it provides an <tt>operator()</tt> to read its values.
     1.6    ///
     1.7 -  ///For the sake of convenience it also works as a ususal map, i.e
     1.8 +  ///For the sake of convenience it also works as
     1.9 +  ///a ususal \ref concept::ReadMap "readable map", i.e
    1.10    ///<tt>operator[]</tt> and the \c Key and \c Value typedefs also exist.
    1.11  
    1.12    template<class M> 
    1.13 @@ -704,6 +705,8 @@
    1.14    {
    1.15      const M &m;
    1.16    public:
    1.17 +    typedef typename M::Key argument_type;
    1.18 +    typedef typename M::Value result_type;
    1.19      typedef typename M::Key Key;
    1.20      typedef typename M::Value Value;
    1.21