Reset the vector array
| 475 | |
| 476 | //! Reset the vector array |
| 477 | void reset(size_t dim) { |
| 478 | dimension_ = (dim + (sizeof(ValueType) << 3) - 1) / |
| 479 | (sizeof(ValueType) << 3) * (sizeof(ValueType) << 3); |
| 480 | buffer_.clear(); |
| 481 | } |
| 482 | |
| 483 | //! Requests the removal of unused capacity. |
| 484 | void shrink_to_fit() { |