How would you perform destruction of a tree with more than one child tail recursively?  I mean this as an honest question - my current implementation of array_mapped_trie performs this operation via non-tail recursive calls.<p>EDIT: I also don&#x27;t see how destruction of a list is any harder than iteration of a list, as far as writing it tail recursively.  You would need to make sure your node destructors are trivial, but you probably need to do this anyway if you intend to support using a custom Allocator (would instead have template &lt;typename Allocator&gt; destroy(node*, Allocator&amp;); that calls Allocator::destroy on the contained value and Allocator::deallocate on the node).  The implementation would then look something along the lines of:<p>decltype(head) next;
for (auto ptr = head; ptr; ptr = next) {
  next = ptr-&gt;next;
  if (ptr-&gt;unique()) {
    destroy(ptr, allocator);
  }
}<p>(unique() is a method on node - intrusive ref count.)