示例#1
0
 void data_sample( const T& sample )
 {
     minit = sample;
     // read each item from the queue
     // and re-init it with sample
     for( unsigned int i = 0; i < mpool.capacity(); ++i ) {
         mpit[i].content = minit;
     }
 }
示例#2
0
 /**
  * Returns the maximum number of elements.
  */
 size_type capacity() const {
     return mpool.capacity();
 }