lemon/maps.h
changeset 1671 3c82a0d9e0e7
parent 1660 93792a112fd5
child 1675 fa89ffb27a6d
equal deleted inserted replaced
8:a786e5c3f31b 9:dca14c358256
   111 
   111 
   112   ///Returns a \ref ConstMap class
   112   ///Returns a \ref ConstMap class
   113 
   113 
   114   ///This function just returns a \ref ConstMap class.
   114   ///This function just returns a \ref ConstMap class.
   115   ///\relates ConstMap
   115   ///\relates ConstMap
   116   template<class V,class K> 
   116   template<class K,class V> 
   117   inline ConstMap<V,K> constMap(const K &k) 
   117   inline ConstMap<K,V> constMap(const V &v) 
   118   {
   118   {
   119     return ConstMap<V,K>(k);
   119     return ConstMap<K,V>(v);
   120   }
   120   }
   121 
   121 
   122 
   122 
   123   //\todo to document later
   123   //\todo to document later
   124   template<typename T, T v>
   124   template<typename T, T v>