[Lemon-commits] [lemon_svn] alpar: r1643 - hugo/trunk/src/lemon
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:46:45 CET 2006
Author: alpar
Date: Thu Mar 17 11:46:57 2005
New Revision: 1643
Modified:
hugo/trunk/src/lemon/maps.h
Log:
MapFunctor is made an STL standard compliant functor.
Modified: hugo/trunk/src/lemon/maps.h
==============================================================================
--- hugo/trunk/src/lemon/maps.h (original)
+++ hugo/trunk/src/lemon/maps.h Thu Mar 17 11:46:57 2005
@@ -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;
More information about the Lemon-commits
mailing list