title: C++ Tokenize a string with spaces and quotes
body: <p>I would like to write something in C++ that tokenize a string. For the sake of clarity, consider the following string:</p>
  <pre><code>add string &quot;this is a string with spaces!&quot;
  </code></pre>
  <p>This must be split as follows:</p>
  <pre><code>add
  string
  this is a string with spaces!
  </code></pre>
  <p>Is there a quick and standard-library-based approach?</p>