Use of List inside map C++
<p>Can I use follwing syntax?</p>

<pre><code> std::map&lt;int,std::list&lt;int&gt;&gt; mAllData;
</code></pre>

<p>Where Key Value(int) will be ID of data.
and said data could have multiple types so storing all them against said key value. I am trying to use it. Can somenody provide sample code how this should work or do I have any other data structure to do so.</p>

<p>Thanks</p>
