title: How to access a certain element in std::list<string>
body: <pre><code>   list&lt;string&gt;&amp;  whichList = theLists[ myhash( x, theLists.size( ) ) ];
  </code></pre>
  
  <p>I was wondering how to access a certain position say "i" and see if it was empty at that position.</p>
  
  <p>I was doing it like this:</p>
  
  <pre><code>if(whichList[i] == 0)
  </code></pre>
  
  <p>but it does not seem to be working.</p>
  
  <p>I realize this is wrong. Any suggestions?</p>