title: Can we hold 2 data types in a STL list?
body: <p>i want my list to hold an integer value as well as a string value. is this possible?<br>
  I am implementing a hash table using STL lists which can store only the integer. I am hashing a string to get the index where i am storing my integer. Now i want my string to be stored with the integer as well.</p>
  
  <p>EDIT 1:<br>
  so i am using this statement:</p>
  
  <pre><code>    list&lt;pair&lt;int,string&gt;&gt; table[127];    
  </code></pre>
  
  <p>and here is the error im getting:<br>
  <code>&gt;&gt;' should be</code>> >' within a nested template argument list
  ok i fixed this.. it seems i didn't put a space in the ">>" so now its fix</p>
  
  <p>next question<br>
  how do i add my pair to the table array?</p>