lemon/concepts/maps.h
branch1.1
changeset 723 1248d23d6e93
parent 706 703ebf476a1d
child 755 40bbb450143e
equal deleted inserted replaced
16:805b54f4a03a 17:9ebf0842cd00
   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;