title: How to initialize array elements by using initializer list?
body: <p>Im trying something like this (which doesnt compile):</p>
  
  <pre><code>struct mystruct {
      somestruct arr[4];
      mystruct(somestruct val) : arr[0](val), arr[1](val), arr[2](val), arr[3](val) {}
  };
  </code></pre>
  
  <p>How is this best done in c++ ?</p>
  
  <p>Note: i might want to set only <em>some</em> of the array elements with this method.</p>