clear

inline void libsemigroups::Forest::clear() noexcept

Removes all nodes from the forest.

Exceptions

This function is noexcept and is guaranteed never to throw.

Complexity

Linear in nr_nodes().

Iterator validity

This function modifies the object defined by this, any iterators, pointers or references pointing into this may be invalidated by a call to this function.

Parameters

(None)

Returns

(None)