miniscript::ForEachNode

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

NameDescription
rootThe root node from which traversal starts.
fnCallable invoked once for each node in the tree.