access a list item c + +
<p>I store objects in a list. I want access their method but I do not see how to do it. In C#, I need to write:</p>

<pre><code>for (i = 0; i &lt; myList.count(); i++)
myList[i].update();
</code></pre>

<p>but C++ does not work :</p>

<pre><code>list&lt;Bullet&gt; bullets;

bullets.emplace_back(t_bulletPlayer);

for (i = 0; i &lt; bullets.size(); i++)
{
   bullets[i].update();
}
</code></pre>

<p>Can you help me?</p>
