
11 May
2005
11 May
'05
4:21 p.m.
On 05/11/2005 10:45 AM, Gennadiy Rozental wrote:
I've had a need for tracking a class' instances for some time now. I've used:
Could you give two lines rationale for what it is doing and how it's doing it? The CTOR simply records each instance in a class set and the DTOR removes it. The superclass assigns a unique ID to the instance.
------------------- It's really very simple, but I've seen the equivalent used in several memory managements test; hence, I thought it would a candidate for inclusion.