title: How do I know who holds the shared_ptr<>?
body: <p>I use boost::shared_ptr in my application in C++. The memory problem is really serious, and the application takes large amount of memory.</p>
  
  <p>However, because I put every newed object into a shared_ptr, when the application exits, no memory leaking can be detected.</p>
  
  <p>There must be some thing like <code>std::vector&lt;shared_ptr&lt;&gt; &gt;</code> pool holding the resource. How can I know who holds the shared_ptr, when debugging?</p>
  
  <p>It is hard to review code line by line. Too much code...</p>
  
  <p>Thanks very much!</p>