Is it necessary to initialize a private list class member in a constructor?
<p>i have a header file:</p>

<pre><code>class day
{
public:
day(int id);
~day();

private:
int id;
std::list&lt;meeting*&gt; meetings;


};
</code></pre>

<p>and in my cpp file:</p>

<pre><code>#include "day.h"
#include "meeting.h"

day::day(int id) : id(id) {  }
</code></pre>

<p>is it necessary to add <code>meetings()</code> to the constructor's initialization list ?</p>

<pre><code>day::day(int id) : id(id), meetings() {  }
</code></pre>

<p>I am not sure about the rules of initializing objects with constructors. Are all private members objects get initialized even if not explicitly initialized in the constructor ? Also, do i need to create a destructor for the list to delete the objects in the list ?</p>

<p>Thanks.</p>
