add explanation of depth to the iterator/visitor field

Sun, 27 Apr 2025 12:54:16 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 27 Apr 2025 12:54:16 +0200
changeset 1308
ce01b482daa3
parent 1307
b2547ff3d1ce
child 1309
b240b73d2a10

add explanation of depth to the iterator/visitor field

src/cx/tree.h file | annotate | diff | comparison | revisions
--- a/src/cx/tree.h	Sun Apr 27 12:37:29 2025 +0200
+++ b/src/cx/tree.h	Sun Apr 27 12:54:16 2025 +0200
@@ -120,6 +120,7 @@
         size_t stack_size;
         /**
          * The current depth in the tree.
+         * The node with which the iteration starts has depth 1.
          */
         size_t depth;
     };
@@ -135,6 +136,7 @@
     void *node;
     /**
      * The depth of the node.
+     * The first visited node has depth 1.
      */
     size_t depth;
     /**

mercurial