MCPcopy Create free account
hub / github.com/apache/arrow / reallocate_dynamic

Method reallocate_dynamic

cpp/src/arrow/util/small_vector.h:198–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 }
197
198 void reallocate_dynamic(size_t new_capacity) {
199 assert(new_capacity >= size_);
200 auto new_data = new storage_type[new_capacity];
201 storage_type::move_construct_several_and_destroy_source(data_, new_data, size_);
202 delete[] data_;
203 dynamic_capacity_ = new_capacity;
204 data_ = new_data;
205 }
206};
207
208template <typename T, size_t N, typename Storage>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected