Changeset 1133:93d455c647be in lemon-main
- Timestamp:
- 04/14/15 16:36:45 (10 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/stl_iterators.h
r1130 r1133 56 56 template<class LIT, class P> 57 57 class LemonRangeWrapper1 { 58 const P &_p;59 58 typedef LemonItWrapper<LIT> It; 59 It _begin; 60 60 61 public: 61 LemonRangeWrapper1(const P &p) : _ p(p) {}62 LemonRangeWrapper1(const P &p) : _begin(LIT(p)) {} 62 63 It begin() const { 63 return It(LIT(_p));64 return _begin; 64 65 } 65 66 It end() const { … … 81 82 template<class LIT, class P1, class P2> 82 83 class LemonRangeWrapper2 { 83 const P1 &_p1; 84 const P2 &_p2; 85 typedef LemonItWrapper<LIT> It; 86 public: 87 LemonRangeWrapper2(const P1 &p1, const P2 &p2) : _p1(p1), _p2(p2) {} 84 typedef LemonItWrapper<LIT> It; 85 It _begin; 86 public: 87 LemonRangeWrapper2(const P1 &p1, const P2 &p2) : _begin(LIT(p1, p2)) {} 88 88 It begin() const { 89 return It(LIT(_p1, _p2));89 return _begin; 90 90 } 91 91 It end() const {
Note: See TracChangeset
for help on using the changeset viewer.