Reset the vector array
| 303 | |
| 304 | //! Reset the vector array |
| 305 | void reset(size_t dim) { |
| 306 | dimension_ = (dim + (sizeof(ValueType) << 1) - 1) / |
| 307 | (sizeof(ValueType) << 1) * sizeof(ValueType) |
| 308 | << 1; |
| 309 | buffer_.clear(); |
| 310 | } |
| 311 | |
| 312 | //! Requests the removal of unused capacity. |
| 313 | void shrink_to_fit() { |