Adding a struct to std::list
<pre><code>struct Group
{
   Group(string _N, set &lt;string&gt; M_)
   {Name = N_; Member = M_}
   string Name;
   set &lt;string&gt; Members;
};

int main()
{
   list &lt;Group&gt; GroupList;
   set &lt;string&gt; Members;

   //collect the members from a file and add to set

   GroupList.pushback(Group(Name, Members));

}
</code></pre>

<p>is there a less memory consuming way to the add the members to group instead of passing the whole set to the constructor?</p>

<p><strong>Edit</strong>: Renamed the variables starting with underscore.</p>
