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