lemon/bits/traits.h
changeset 187 84c2a2e5cfee
parent 139 701c529ba737
child 209 765619b7cbb2
equal deleted inserted replaced
2:c5cee5dc43fe 3:4a232d98f8b2
   148     typedef False ReferenceMapTag;
   148     typedef False ReferenceMapTag;
   149 
   149 
   150     typedef typename Map::Key Key;
   150     typedef typename Map::Key Key;
   151     typedef typename Map::Value Value;
   151     typedef typename Map::Value Value;
   152 
   152 
   153     typedef const Value ConstReturnValue;
   153     typedef Value ConstReturnValue;
   154     typedef const Value ReturnValue;
   154     typedef Value ReturnValue;
   155   };
   155   };
   156 
   156 
   157   template <typename Map>
   157   template <typename Map>
   158   struct MapTraits<
   158   struct MapTraits<
   159     Map, typename enable_if<typename Map::ReferenceMapTag, void>::type > 
   159     Map, typename enable_if<typename Map::ReferenceMapTag, void>::type > 
   176 
   176 
   177     typedef typename MatrixMap::FirstKey FirstKey;
   177     typedef typename MatrixMap::FirstKey FirstKey;
   178     typedef typename MatrixMap::SecondKey SecondKey;
   178     typedef typename MatrixMap::SecondKey SecondKey;
   179     typedef typename MatrixMap::Value Value;
   179     typedef typename MatrixMap::Value Value;
   180 
   180 
   181     typedef const Value ConstReturnValue;
   181     typedef Value ConstReturnValue;
   182     typedef const Value ReturnValue;
   182     typedef Value ReturnValue;
   183   };
   183   };
   184 
   184 
   185   template <typename MatrixMap>
   185   template <typename MatrixMap>
   186   struct MatrixMapTraits<
   186   struct MatrixMapTraits<
   187     MatrixMap, typename enable_if<typename MatrixMap::ReferenceMapTag, 
   187     MatrixMap, typename enable_if<typename MatrixMap::ReferenceMapTag,