title: Can I create a std::vector of a struct without defining the struct first?
body: <p>Instead of:</p>
  
  <pre><code>struct MyStruct{
      ...
  };
  
  std::vector&lt;MyStruct&gt; myVec;
  </code></pre>
  
  <p>Can I do something like:</p>
  
  <pre><code>std::vector&lt;struct MyStruct {...}&gt; myVec;
  </code></pre>
  
  <p>or even, since I don't need a name for this struct as I'm only using it inside this vector:</p>
  
  <pre><code>std::vector&lt;struct {...}&gt; myVec?
  </code></pre>
  
  <p>I'm using C++ for many years and I don't think it's possible. I think it would be nice though...</p>
  
  <p>Or is there a way?</p>