# HG changeset patch # User Peter Kovacs # Date 2008-01-08 02:21:01 # Node ID 93ae269876deb5d8ca512b91ea22a1ce38f37cd1 # Parent 3750b8ebc91eb253738ec6535face49369428f0e Minor doc improvements. diff --git a/lemon/concepts/maps.h b/lemon/concepts/maps.h --- a/lemon/concepts/maps.h +++ b/lemon/concepts/maps.h @@ -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 {