Moves 'vector' to the pool if it is reusable, else leaves it in place. Returns true if the vector was moved into the pool.
| 349 | /// Moves 'vector' to the pool if it is reusable, else leaves it in |
| 350 | /// place. Returns true if the vector was moved into the pool. |
| 351 | bool releaseVector(VectorPtr& vector) { |
| 352 | if (vectorPool_) { |
| 353 | return vectorPool_->release(vector); |
| 354 | } |
| 355 | return false; |
| 356 | } |
| 357 | |
| 358 | /// Moves elements of 'vectors' to the pool if reusable, else leaves them |
| 359 | /// in place. Returns number of vectors that were moved into the pool. |