equal
deleted
inserted
replaced
180 /// Sets the value associated with the given key. |
180 /// Sets the value associated with the given key. |
181 void set(const Key &k,const Value &t) { operator[](k)=t; } |
181 void set(const Key &k,const Value &t) { operator[](k)=t; } |
182 |
182 |
183 template<typename _ReferenceMap> |
183 template<typename _ReferenceMap> |
184 struct Constraints { |
184 struct Constraints { |
185 void constraints() { |
185 typename enable_if<typename _ReferenceMap::ReferenceMapTag, void>::type |
|
186 constraints() { |
186 checkConcept<ReadWriteMap<K, T>, _ReferenceMap >(); |
187 checkConcept<ReadWriteMap<K, T>, _ReferenceMap >(); |
187 ref = m[key]; |
188 ref = m[key]; |
188 m[key] = val; |
189 m[key] = val; |
189 m[key] = ref; |
190 m[key] = ref; |
190 m[key] = cref; |
191 m[key] = cref; |