title: resizing a vector which is in a struct
body: <p>I have defined two <code>struct</code>s</p>
  
  <pre><code>class foo() {
  public:
      struct spatialEntry {
          bool block;
          CoherenceState_t state;
      };
  
      struct accumulationEntry {
          uint64_t offset;
          std::vector&lt;spatialEntry&gt; pattern;
      };
  
      std::vector&lt;int&gt; v;
      std::list&lt;accumulationEntry&gt; accumulationTable;
  
      foo() {
          v.resize(16);
      }
  };
  </code></pre>
  
  <p>Now I want to initialize the size of <code>std::vector&lt;spatialEntry&gt;</code> to 16 like <code>v</code>. How can I do that?</p>