Do I need to nullify a member variable in the destructor?
<p>Why one would want to explicitly clear the a vector member variable (of on in a dtor (please see the code below). what are the benefits of clearing the vector, even though it will be destroyed just after the last line of dtor code will get executed?</p>

<pre><code>class A
{
~A()
{
   values.clear();
}

private: 
  std::vector &lt; double &gt; values_;
};
</code></pre>

<p>similar question about a the following code:</p>

<pre><code>class B
{
~B()
{
   if (NULL != p)
   {
       delete p_;
       p_ = NULL;
   }
}

private: 
  A * p_;
};
</code></pre>

<p>Since there is no way the dtor will get called twice, why to nullify p_ then?</p>
