title: Will new automatically use swap if memory is limited?
body: <p>If I try to allocate memory:</p>
  
  <pre><code>int ramSize = magicLibrary.getRamSize();
  assert(ramSize*2 &lt;= pow(2,64-8));//Don't overflow the 64 bit limit (32 on some systems).
  
  int * mainData new int[ramSize*2/sizeof(int)]; //2 times too big. 
  </code></pre>
  
  <p>Will I get disk swap to fill in the space? If not, how can I use swap?</p>