Having a collection of pointer that remove destroyed elements

📝

内容提要

Let's say I have an object Foo that uses another object Bar. Many different Foo could use the same Bar. When no Foo references a Bar, this Bar is useless and should be destroyed. Clearly, that's a...

➡️

继续阅读