I'm not sure if this needs to be said strictly, but I would like to consider common ptr as a garbage collection strategy.
I have two questions:
- When sharing ptr to collect garbage; and when are other strategies like mark-sweep?
- Is there a lib implemented by shared ptr in C?
Thank.
source
share