title: C++ new operator - memory layout
body: <p>Is the new operator guaranteed to allocate a continuous chunk of heap memory? I.e. is</p>
  
  <pre><code>objects=new Base[1024];
  </code></pre>
  
  <p>in terms of memory allocation the same as</p>
  
  <pre><code>objects=(Base*)malloc(1024*sizeof(base));
  </code></pre>
  
  <p>or can there be gaps?</p>