title: sizeof pair<int,string> in c++
body: <p>In the following code (on a 32 bit machine), if I print out the sizeof the pair, should I get 12? In my compiler I got 16. Is this always the case or it is compiler specific?</p>
  
  <pre><code>pair&lt;int,string&gt; b = std::make_pair(1,"randomcrap");
  string c= "randomcrap";
  cout &lt;&lt; sizeof(c) &lt;&lt; endl; //got 8 which make sense
  cout &lt;&lt; sizeof(b) &lt;&lt; endl; //got 16
  </code></pre>