title: Initialize empty vector in structure - c++
body: <p>I have a <code>struct</code>: </p>
  
  <pre><code>typedef struct user {
      string username;
      vector&lt;unsigned char&gt; userpassword;
  } user_t;
  </code></pre>
  
  <p>I need to initialize <code>userpassword</code> with an empty <code>vector</code>:</p>
  
  <pre><code>struct user r={"",?};
  </code></pre>
  
  <p>What should I put instead of <code>?</code>?</p>