src/work/marci/macro_test.cc
changeset 542 69bde1d90c04
parent 330 7ac0d4e8a31c
child 640 d426dca0aaf7
equal deleted inserted replaced
0:e5903fee7d87 1:e51317ecf04d
    12   typedef ListGraph Graph;
    12   typedef ListGraph Graph;
    13   Graph g;
    13   Graph g;
    14   Graph::Node n1=g.addNode();
    14   Graph::Node n1=g.addNode();
    15   Graph::Node n2=g.addNode();
    15   Graph::Node n2=g.addNode();
    16   Graph::NodeIt n;
    16   Graph::NodeIt n;
    17   FOR_EACH(n, g) {
    17   FOR_EACH_GLOB(n, g) {
    18     std::cout << g.id(n) << " ";
    18     std::cout << g.id(n) << " ";
    19   }
    19   }
    20   std::cout << std::endl;
    20   std::cout << std::endl;
    21   FOR_EACH_LOC(Graph::NodeIt, m, g) {
    21   FOR_EACH_LOC(Graph::NodeIt, m, g) {
    22     std::cout << g.id(m) << " ";
    22     std::cout << g.id(m) << " ";