title: Splitting a string by whitespace in c++
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/236129/c-how-to-split-a-string">C++: How to split a string?</a><br>
    <a href="https://stackoverflow.com/questions/909289/splitting-a-string">Splitting a string</a>  </p>
  </blockquote>
  
  
  
  <p>What is the best way to go about splitting a string up by whitespace in c++?</p>
  
  <p>I'd like to be able to split it based on tab, space, etc. and of course ignore multiple tabs/spaces/etc. in a row as well as not have issues with having those things at the end.</p>
  
  <p>Ultimately, I am going to end up storing this in a vector, but I can easily convert between data types if there is some easy built-in standard library way of splitting.</p>
  
  <p>I am building this on a UNIX machine with g++, <strong>not</strong> using Microsoft Visual C++</p>