Could anybody let me know where to find the source code (or sample code) of smart_ptr for reference counting?
I find the code for auto_ptr, but seems auto_ptr is not a REAL reference counting because it does not 'count'.