| 52 | } |
| 53 | |
| 54 | void Reset(size_t i, THolder<T> t) { |
| 55 | T* current = (*this)[i]; |
| 56 | if (current) { |
| 57 | Y_ASSERT(current != t.Get()); |
| 58 | D::Destroy(current); |
| 59 | } |
| 60 | (*this)[i] = t.Release(); |
| 61 | } |
| 62 | |
| 63 | void PopBack() { |
| 64 | if (size()) { |
no test coverage detected