! * \brief Make sure the list has the capacity of at least n * \param n lower bound of the capacity */
| 530 | * \param n lower bound of the capacity |
| 531 | */ |
| 532 | void reserve(int64_t n) { |
| 533 | if (data_ == nullptr || n > static_cast<int64_t>(GetArrayObj()->SeqBaseObj::capacity())) { |
| 534 | SwitchContainer(n); |
| 535 | } |
| 536 | } |
| 537 | |
| 538 | /*! \brief Release reference to all the elements */ |
| 539 | void clear() { |