title: Boost pool singleton RequestedSize setup
body: <p>I am trying to use <a href="http://www.boost.org/doc/libs/1_39_0/libs/pool/doc/interfaces/singleton_pool.html" rel="nofollow">boost::singleton_pool</a> for memory pooling. I need it to solve the following problem: </p>
  
  <p>In my app I allocate occasionally memory for objects of fixed number of bytes. Then at some point I deallocate those (also occasionally one by one). There is always at most <code>N</code> (set at compile time) number of the allocated objects in memory. Each time one of those ends its lifetime it gets deallocated. So my question is, given the mentioned object name is <code>demo_block</code>, should I specify <code>RequestedSize</code> to be <code>N * sizeof(demo_block)</code>? That's like this:</p>
  
  <pre><code> struct MyOrderTag{};
  typedef boost::singleton_pool&lt;MyOrderTag,sizeof(demo_block) * MaxObjects&gt; MyMemPool;
  </code></pre>
  
  <p>or just a size of a single object?</p>
  
  <pre><code>struct MyOrderTag{};
  typedef boost::singleton_pool&lt;MyOrderTag,sizeof(demo_block)&gt; MyMemPool;
  </code></pre>