Returns the number of leaf nodes in the tree.
| 236 | |
| 237 | // Returns the number of leaf nodes in the tree. |
| 238 | int64 leaf_count() const { return std::distance(leaf_begin(), leaf_end()); } |
| 239 | |
| 240 | // Recursively traverses the shape and calls the given function at each |
| 241 | // element. The function has the following arguments: |
no outgoing calls