polymorphic-iterators-need-heap-and-raii

Status: IN

Polymorphic iterators require heap allocation via factory methods (CreateIterator); IteratorPtr is a stack-allocated RAII proxy that ensures proper cleanup and prevents memory leaks from forgotten deletes.

Source: entries/2026/06/17/gof-oo-chunk-17.md

Depended on by

JSON