docs/Writerside/topics/tree.h.md

changeset 1295
b00c6ae1441a
parent 1275
0f21abc52241
--- a/docs/Writerside/topics/tree.h.md	Mon Apr 14 19:36:43 2025 +0200
+++ b/docs/Writerside/topics/tree.h.md	Mon Apr 14 19:53:20 2025 +0200
@@ -257,6 +257,8 @@
 
 size_t cxTreeSubtreeDepth(CxTree *tree, void *subtree_root);
 
+size_t cxTreeSize(CxTree *tree);
+
 size_t cxTreeDepth(CxTree *tree);
 ```
 
@@ -265,15 +267,10 @@
 The function `cxTreeSubtreeDepth()` reports the maximum depth of the subtree starting with `subtree_root`.
 If the `subtree_root` does not have any children, this results in a depth of one.
 
-The function `cxTreeDepth()` is equivalent to `cxTreeSubtreeDepth()` where `subtree_root` is the root node of the entire tree.
+The functions `cxTreeSize()` and `cxTreeDepth()` are equivalent to `cxTreeSubtreeSize()` and `cxTreeSubtreeDepth()`, respectively, where `subtree_root` is the root node of the entire tree.
 
 > Passing a `NULL` pointer as `subtree_root` makes those functions return zero.
 
-> In the current UCX version there is no separate function `cxTreeSize()`, because
-> the size attribute can be directly accessed in the `CxTree` structure.
-> The next UCX version is planned to have also a function for accessing that attribute.
->{style="note"}
-
 ## Search
 
 ```C

mercurial