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 typename enable_if<typename _ReferenceMap::ReferenceMapTag, void>::type |
185 void constraints() { |
186 constraints() { |
|
187 checkConcept<ReadWriteMap<K, T>, _ReferenceMap >(); |
186 checkConcept<ReadWriteMap<K, T>, _ReferenceMap >(); |
188 ref = m[key]; |
187 ref = m[key]; |
189 m[key] = val; |
188 m[key] = val; |
190 m[key] = ref; |
189 m[key] = ref; |
191 m[key] = cref; |
190 m[key] = cref; |