title: How to constraint several C++ vectors to the same size?
body: <p>I have a class containing a set of C dynamic arrays which are all of the same size, with one of the members being the size of these arrays :</p>
  
  <pre><code>class stuff {
    int size;
    float *abc;
    float *def;
    // etc.
   };
  </code></pre>
  
  <p>To ease memory management of this class (and a lot of other classes having a similar layout), I would like to use standard containers. However I must keep the alignment constraint provided by C arrays (and vectors) because this data will be passed around in a lot of C functions.</p>
  
  <p>My problem here is that each vector has its own size, which is redundant and can lead to errors if for one reason or another one changes its size and not the others.</p>
  
  <p>Is there a way to force the arrays/vectors/whatevers to always be the same size ? </p>