Changeset 2039:dacc4ce9474d in lemon-0.x for lemon/bits/traits.h
- Timestamp:
- 04/06/06 11:33:29 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2678
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/traits.h
r1996 r2039 240 240 }; 241 241 242 template <typename MatrixMap, typename Enable = void> 243 struct MatrixMapTraits { 244 typedef False ReferenceMapTag; 245 246 typedef typename MatrixMap::FirstKey FirstKey; 247 typedef typename MatrixMap::SecondKey SecondKey; 248 typedef typename MatrixMap::Value Value; 249 250 typedef const Value ConstReturnValue; 251 typedef const Value ReturnValue; 252 }; 253 254 template <typename MatrixMap> 255 struct MatrixMapTraits< 256 MatrixMap, typename enable_if<typename MatrixMap::ReferenceMapTag, 257 void>::type > 258 { 259 typedef True ReferenceMapTag; 260 261 typedef typename MatrixMap::FirstKey FirstKey; 262 typedef typename MatrixMap::SecondKey SecondKey; 263 typedef typename MatrixMap::Value Value; 264 265 typedef typename MatrixMap::ConstReference ConstReturnValue; 266 typedef typename MatrixMap::Reference ReturnValue; 267 268 typedef typename MatrixMap::ConstReference ConstReference; 269 typedef typename MatrixMap::Reference Reference; 270 }; 271 242 272 // Indicators for the tags 243 273
Note: See TracChangeset
for help on using the changeset viewer.