title: Stringstream Delimiter
body: <p>Is there a default delimiter for stringstream? From my research, I understood that I can use it to split a string using space and comma as delimiters. But can I use other delimiters for stringstream? 
  Here is a C++ code snippet :</p>
  
  <pre><code>vector&lt;int&gt; parseInts(string str) {
      // Complete this function
      stringstream ss(str);
      vector&lt;int&gt; res;
      char ch;
      int x;
      while(ss){
          ss &gt;&gt; x &gt;&gt; ch;
          res.push_back(x);
      }
      return res;
  }
  </code></pre>
  
  <p>This code works without me mentioning any specific delimiter. How does that happen?</p>