lemon/concepts/maps.h
changeset 751 b4af20d02ae0
parent 514 f5bc148f7e1f
child 715 37f440367057
child 783 b873350e6258
equal deleted inserted replaced
15:d4370f4e270a 16:805b54f4a03a
   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;