diff -r a34c58ff6e40 -r 90201bb15a8d lemon/concepts/maps.h --- a/lemon/concepts/maps.h Tue Jan 08 04:26:27 2008 +0100 +++ b/lemon/concepts/maps.h Tue Jan 08 20:26:48 2008 +0100 @@ -48,6 +48,7 @@ /// Returns the value associated with a key. + /// Returns the value associated with a key. /// \bug Value shouldn't need to be default constructible. /// Value operator[](const Key &) const {return Value();} @@ -113,7 +114,7 @@ }; }; - /// Read/Writable map concept + /// Read/writable map concept /// Read/writable map concept. /// @@ -146,6 +147,7 @@ /// Dereferable map concept. /// + /// \todo Rethink this concept. template class ReferenceMap : public ReadWriteMap { @@ -165,14 +167,13 @@ Value tmp; public: - ///Returns a reference to the value associated to a key. + ///Returns a reference to the value associated with a key. Reference operator[](const Key &) { return tmp; } - ///Returns a const reference to the value associated to a key. + ///Returns a const reference to the value associated with a key. ConstReference operator[](const Key &) const { return tmp; } /// Sets the value associated with a key. void set(const Key &k,const Value &t) { operator[](k)=t; } - /// \todo Rethink this concept. template struct ReferenceMapConcept {