title: Operator new with address hint (create an object near another object)
body: <p>I want to create a lot of objects of the same type, and i want them to be relatively close in memory to avoid page misses.</p>
  
  <p>Is there a way to tell the operating system (windows platform) to allocate memory as close as possible to a given address? (address hint)<br>
  Some function hidden deep in MSDN?</p>
  
  <p>I know there's operator placement new, but i'm trying to find out if there's any other trick.<br>
  And yes i know how to create custom memory management with placement new....</p>
  
  <p>Pseudocode (if exists):</p>
  
  <pre><code>Myclass *a = new Myclass();
  
  Myclass *b = AloocateNear(a,sizeof(Myclass));
  </code></pre>