title: How to split a wstring
body: <p>I have a <code>wstring</code> variable and I want to split it by space character and put in a <code>vector</code> <br></p>
  
  <pre><code>wstring wStr = L"Hello World !";
  
  
  vector&lt;wstring&gt; vw;
  
  wstring st = L"";
  for (int i = 0; i &lt; wStr.length(); i++) {
  
      if (&amp;wStr[i] == L" ") {
          vw.push_back(st);
      }
      else{
          st += wStr[i];
      }
  
  }
  </code></pre>
  
  <p>My result should be like this in <code>vector</code>: </p>
  
  <blockquote>
    <p><br> Hello <br> World <br> !</p>
  </blockquote>
  
  <p>But it doesn't go in if statement</p>