Changeset 209:9a37b8d02d74 in lemon-0.x for src/work/alpar/mapskeleton.h
- Timestamp:
- 03/19/04 21:58:39 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@304
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/alpar/mapskeleton.h
r186 r209 19 19 20 20 ///Reads an element of the map. 21 ValueType get(const KeyType &i) const {return ValueType();}21 ValueType operator[](const KeyType &i) const {return ValueType();} 22 22 }; 23 23 … … 71 71 72 72 ///Give a reference to the value belonging to a key. 73 ValueType &operator[](const KeyType &i) {return *(ValueType*)0;} 74 // const ValueType &operator[](const KeyType &i) const {return *(T*)0;} 73 ValueType &operator[](const KeyType &i) {return *(ValueType*)0;} 74 ///Give a const reference to the value belonging to a key. 75 const ValueType &operator[](const KeyType &i) const {return *(T*)0;} 75 76 }; 76 77
Note: See TracChangeset
for help on using the changeset viewer.