src/lemon/maps.h
changeset 1316 daaf6b5c28d6
parent 1219 ce885274b754
child 1317 83f80464f111
equal deleted inserted replaced
11:79a5fce8a697 12:b17de37600f2
   694   ///Converts a map to an STL style (unary) functor
   694   ///Converts a map to an STL style (unary) functor
   695 
   695 
   696   ///This class Converts a map to an STL style (unary) functor.
   696   ///This class Converts a map to an STL style (unary) functor.
   697   ///that is it provides an <tt>operator()</tt> to read its values.
   697   ///that is it provides an <tt>operator()</tt> to read its values.
   698   ///
   698   ///
   699   ///For the sake of convenience it also works as a ususal map, i.e
   699   ///For the sake of convenience it also works as
       
   700   ///a ususal \ref concept::ReadMap "readable map", i.e
   700   ///<tt>operator[]</tt> and the \c Key and \c Value typedefs also exist.
   701   ///<tt>operator[]</tt> and the \c Key and \c Value typedefs also exist.
   701 
   702 
   702   template<class M> 
   703   template<class M> 
   703   class MapFunctor
   704   class MapFunctor
   704   {
   705   {
   705     const M &m;
   706     const M &m;
   706   public:
   707   public:
       
   708     typedef typename M::Key argument_type;
       
   709     typedef typename M::Value result_type;
   707     typedef typename M::Key Key;
   710     typedef typename M::Key Key;
   708     typedef typename M::Value Value;
   711     typedef typename M::Value Value;
   709 
   712 
   710     ///Constructor
   713     ///Constructor
   711 
   714