Top "Reference-counting" questions

Reference counting is a mechanism whereby a computer language keeps track of when you create and then no longer need an object or data structure, in order to free unneeded memory.

How python handles object instantiation in a ' for' loop

I've got a highly complex class : class C: pass And I've got this test code : for j in range(10): c = …

python memory-management for-loop instantiation reference-counting
Is there a way to cast shared_ptr<void> to shared_ptr<T>?

I want to keep the smart behavior of std::shared_ptr. So is there a way to cast a shared …

c++ shared-ptr void-pointers reference-counting