Unordered traversal of a miniscript node tree.
Declared in <script/miniscript.h>
template<
typename Key,
std::invocable<Node<Key> const&> Fn>
void
ForEachNode(
Node<Key> const& root,
Fn&& fn);
| Name | Description |
|---|---|
| root | The root node from which traversal starts. |
| fn | Callable invoked once for each node in the tree. |