Changeset 139:c76f1eea05d2 in lemon-0.x for src
- Timestamp:
- 03/01/04 15:33:00 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@193
- Location:
- src/work
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/list_graph.hh
r134 r139 306 306 bool valid(NodeIt n) const { return n.valid(); } 307 307 308 template <typename It> It next(It it) const {309 It tmp(it); return goNext(tmp); }310 template <typename It> It& goNext(It& it) const { return ++it; }308 template <typename It> It getNext(It it) const { 309 It tmp(it); return next(tmp); } 310 template <typename It> It& next(It& it) const { return ++it; } 311 311 312 312 -
src/work/marci/edmonds_karp_demo.cc
r138 r139 11 11 // Use a DIMACS max flow file as stdin. 12 12 // read_dimacs_demo < dimacs_max_flow_file 13 14 /* 15 struct Ize { 16 }; 17 18 struct Mize { 19 Ize bumm; 20 }; 21 22 template <typename B> 23 class Huha { 24 public: 25 int u; 26 B brr; 27 }; 28 */ 29 13 30 int main(int, char **) { 14 31 typedef ListGraph::NodeIt NodeIt; 15 32 typedef ListGraph::EachEdgeIt EachEdgeIt; 33 34 /* 35 Mize mize[10]; 36 Mize bize[0]; 37 Mize zize; 38 typedef Mize Tize[0]; 39 40 std::cout << &zize << " " << sizeof(mize) << sizeof(Tize) << std::endl; 41 std::cout << sizeof(bize) << std::endl; 42 43 44 Huha<Tize> k; 45 std::cout << sizeof(k) << std::endl; 46 */ 16 47 17 48 ListGraph G;
Note: See TracChangeset
for help on using the changeset viewer.