! * \brief set i-th element of the array. * \param i The index * \param value The value to be setted. */
| 583 | * \param value The value to be setted. |
| 584 | */ |
| 585 | void Set(int64_t i, T value) { CopyOnWrite()->SetItem(i, std::move(value)); } |
| 586 | |
| 587 | /*! \return The underlying ArrayObj */ |
| 588 | ArrayObj* GetArrayObj() const { return static_cast<ArrayObj*>(data_.get()); } |