Changeset 346:538ff3ce9f68 in lemon-0.x for src/include
- Timestamp:
- 04/17/04 03:50:23 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@465
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/include/maps.h
r345 r346 96 96 97 97 ReferenceType operator[](const Key &k) { 98 return ( *( (insert(PairType(k,v))).first ) ).second;98 return insert(PairType(k,v)).first -> second; 99 99 } 100 100 ConstReferenceType operator[](const Key &k) const { … … 105 105 } 106 106 void set(const Key &k, const T &t) { 107 // tyuha, ez valamiert segfault-olt igy: 108 // parent::operator[](k) = t; 109 ( *( (insert(PairType(k,t))).first ) ).second=t; 107 parent::operator[](k) = t; 110 108 } 111 109
Note: See TracChangeset
for help on using the changeset viewer.