src/lemon/concept/maps.h
changeset 1367 a490662291b9
parent 1359 1581f961cfaa
child 1375 ebdce4f68ac4
equal deleted inserted replaced
5:aaf558104849 6:a4ca77a3dbac
    74       typedef K Key;    
    74       typedef K Key;    
    75       /// Map's value type. (The type of objects associated with the keys).
    75       /// Map's value type. (The type of objects associated with the keys).
    76       typedef T Value;
    76       typedef T Value;
    77 
    77 
    78       /// Sets the value associated with a key.
    78       /// Sets the value associated with a key.
    79       void set(const Key &k,const Value &t) {}
    79       void set(const Key &,const Value &) {}
    80 
    80 
    81       ///Default constructor
    81       ///Default constructor
    82       WriteMap() {}
    82       WriteMap() {}
    83 
    83 
    84       template <typename _WriteMap>
    84       template <typename _WriteMap>
   112       typedef K Key;    
   112       typedef K Key;    
   113       /// Map's value type. (The type of objects associated with the keys).
   113       /// Map's value type. (The type of objects associated with the keys).
   114       typedef T Value;
   114       typedef T Value;
   115 
   115 
   116       /// Returns the value associated with a key.
   116       /// Returns the value associated with a key.
   117       Value operator[](const Key &k) const {return Value();}
   117       Value operator[](const Key &) const {return Value();}
   118       /// Sets the value associated with a key.
   118       /// Sets the value associated with a key.
   119       void set(const Key &k,const Value &t) {}
   119       void set(const Key & ,const Value &) {}
   120 
   120 
   121       template<typename _ReadWriteMap>
   121       template<typename _ReadWriteMap>
   122       struct Constraints {
   122       struct Constraints {
   123 	void constraints() {
   123 	void constraints() {
   124 	  checkConcept<ReadMap<K, T>, _ReadWriteMap >();
   124 	  checkConcept<ReadMap<K, T>, _ReadWriteMap >();