How to check if memory has been deallocated?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4143382/how-to-check-deallocation-of-memory">How to check deallocation of memory</a>  </p>
</blockquote>



<p>If I have something of this shape:  </p>

<pre><code>class X
{
int* first_;
int* current_;
int* last_;
X():last_(current_ = first_ = nullptr)
{/*e.b.*/}
~X()
{
delete first_;
}
};
</code></pre>

<p>How can I check if memory allocated and pointed to by first_ has been properly deallocated in destructor of X?</p>
