Changeset 74:9394072da54f in lemon-main for lemon
- Timestamp:
- 02/12/08 12:37:22 (17 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/concepts/maps.h
r51 r74 56 56 template<typename _ReadMap> 57 57 struct Constraints { 58 59 58 void constraints() { 60 59 Value val = m[key]; … … 176 175 177 176 template<typename _ReferenceMap> 178 struct ReferenceMapConcept { 179 180 void constraints() { 181 checkConcept<ReadWriteMap, _ReferenceMap >(); 177 struct Constraints { 178 void constraints() { 179 checkConcept<ReadWriteMap<K, T>, _ReferenceMap >(); 182 180 m[key] = val; 183 181 val = m[key]; … … 192 190 typename _ReferenceMap::Key& own_key; 193 191 typename _ReferenceMap::Value& own_val; 194 typename _ReferenceMap::Reference &own_ref;192 typename _ReferenceMap::Reference own_ref; 195 193 Key& key; 196 194 Value& val; 197 Reference &ref;195 Reference ref; 198 196 _ReferenceMap& m; 199 197 };
Note: See TracChangeset
for help on using the changeset viewer.