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

Method reserve

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

Source from the content-addressed store, hash-verified

174 constexpr size_t max_size() const { return std::numeric_limits<size_t>::max(); }
175
176 void reserve(size_t n) {
177 if (dynamic_capacity_) {
178 if (n > dynamic_capacity_) {
179 reallocate_dynamic(n);
180 }
181 } else if (n > N) {
182 switch_to_dynamic(n);
183 }
184 }
185
186 void clear() {
187 storage_type::destroy_several(data_, size_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected