title: How to handle an array with size 1,000,000,000 in C++?
body: <p>I need to handle 3D cube data. Its number of elements can be several billions. I understand I can't allocate that much memory on Windows. So I am thinking disk-based operations with in-process database. Is there any better way to do this? Maybe something in boost?</p>
  
  <p>Update: I will eventually have to provide browsing functionality with plots.</p>
  
  <p>Update2: The following article seemed to be a good solution using memory mapped file. I will try it and update again. <a href="http://www.codeproject.com/Articles/26275/Using-memory-mapped-files-to-conserve-physical-mem" rel="nofollow">http://www.codeproject.com/Articles/26275/Using-memory-mapped-files-to-conserve-physical-mem</a></p>