Changeset 1089 for trunk/yat/utility
- Timestamp:
- Feb 14, 2008, 3:37:12 PM (16 years ago)
- Location:
- trunk/yat/utility
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/iterator_traits.h
r1088 r1089 25 25 */ 26 26 27 #include "IteratorWeighted.h"28 29 27 namespace theplu { 30 28 namespace yat { … … 49 47 }; 50 48 51 /// All iterators should default to unweighted type ... 49 /** 50 All iterators default to unweighted type 51 52 \see Iterator and StrideIterator 53 */ 52 54 template <class T> 53 55 struct weighted_iterator_traits { 54 56 typedef unweighted_type type; 55 };56 57 /// but specialized to return weighted type for some things58 //59 // if you add a new weighted iterator, add a new specialization like60 // this one.61 template <class U, class V>62 struct weighted_iterator_traits<yat::utility::IteratorWeighted<U,V> > {63 typedef weighted_type type;64 57 }; 65 58
Note: See TracChangeset
for help on using the changeset viewer.