lemon/bits/traits.h
changeset 2635 23570e368afa
parent 2553 bfced05fa852
equal deleted inserted replaced
7:079a6a1528ff 8:02005d33269f
   222     typedef False ReferenceMapTag;
   222     typedef False ReferenceMapTag;
   223 
   223 
   224     typedef typename Map::Key Key;
   224     typedef typename Map::Key Key;
   225     typedef typename Map::Value Value;
   225     typedef typename Map::Value Value;
   226 
   226 
   227     typedef const Value ConstReturnValue;
   227     typedef Value ConstReturnValue;
   228     typedef const Value ReturnValue;
   228     typedef Value ReturnValue;
   229   };
   229   };
   230 
   230 
   231   template <typename Map>
   231   template <typename Map>
   232   struct MapTraits<
   232   struct MapTraits<
   233     Map, typename enable_if<typename Map::ReferenceMapTag, void>::type > 
   233     Map, typename enable_if<typename Map::ReferenceMapTag, void>::type > 
   250 
   250 
   251     typedef typename MatrixMap::FirstKey FirstKey;
   251     typedef typename MatrixMap::FirstKey FirstKey;
   252     typedef typename MatrixMap::SecondKey SecondKey;
   252     typedef typename MatrixMap::SecondKey SecondKey;
   253     typedef typename MatrixMap::Value Value;
   253     typedef typename MatrixMap::Value Value;
   254 
   254 
   255     typedef const Value ConstReturnValue;
   255     typedef Value ConstReturnValue;
   256     typedef const Value ReturnValue;
   256     typedef Value ReturnValue;
   257   };
   257   };
   258 
   258 
   259   template <typename MatrixMap>
   259   template <typename MatrixMap>
   260   struct MatrixMapTraits<
   260   struct MatrixMapTraits<
   261     MatrixMap, typename enable_if<typename MatrixMap::ReferenceMapTag, 
   261     MatrixMap, typename enable_if<typename MatrixMap::ReferenceMapTag,