Template Function show_referrers¶
Defined in File sharedPtr.h
Function Documentation¶
Print a list (one per line) of shared_ptr which refer to the same object
- Parameters
ptr – Use the object pointed to by this shared_ptr
self – include or omit a line for this shared_ptr
weak – include a line for each weak_ptr (not implemented)
shared_ptr<int> x; std::cout << show_referrers(x);