title: Does stringstream ignoring whitespaces?
body: <p>I was reading about stringstream and found this example.</p>
  <pre><code>stringstream ss;
  int foo;
  int bar = 0;
  
  ss &lt;&lt; 100 &lt;&lt; ' ' &lt;&lt; 200;
  ss &gt;&gt; foo;
  ss &gt;&gt; bar;
  
  cout &lt;&lt; &quot;foo: &quot; &lt;&lt; foo &lt;&lt; '\n'; // 100
  cout &lt;&lt; &quot;bar: &quot; &lt;&lt; bar &lt;&lt; '\n'; // 200
  </code></pre>
  <p>Why the value of variable 'bar' is 200? Shouldn't a 'bar' read a space from stream and get an ASCII code for space (32), or some other values? Does stringstream ignoring whitespaces? Then why if we add a line  here:</p>
  <pre><code>ss &gt;&gt; foo;
  ss.ignore(1);
  ss &gt;&gt; bar;
  </code></pre>
  <p>the bar's value still 200 isntead of 0?</p>