title: Use Memory Pool with Custom Allocator for STL Containers
body: <p>I would like to be able to pass to the STL containers (vector, unordered_map, etc) the memory pool from which they need to allocate. I've found <a href="https://stackoverflow.com/questions/11373796/custom-memory-allocator-for-stl-map">this question</a>  but it does not address the specific problem I'm facing.
  I already have a working custom allocator that I can specify in the container declaration but could not figure out a way to pass the address for the allocator to use internally (via the placement new operator), from the application. Basically, I would like to go</p>
  
  <p>From:</p>
  
  <pre><code>std::vector&lt;int, myCustomAllocator&lt;int&gt;&gt; myVector;
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>void* pool = getMemoryPoolAddress();
  std::vector&lt;int, myCustomAllocator&lt;int&gt;/*Specify memory pool somehow*/&gt; myVector;
  </code></pre>
  
  <p>How can I pass <code>pool</code> to my allocator?</p>