Trying to think of what the actual definition of garbage collection is, in my mind. I guess something like: an automatic dynamic system that, at runtime, detects and recycles memory that a program no longer needs.

That rules out unique_ptr, because that's static, but it includes reference counting.

Comments