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

Method push_back

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

Source from the content-addressed store, hash-verified

374 void clear() { storage_.clear(); }
375
376 void push_back(const T& value) {
377 storage_.bump_size(1);
378 storage_.storage_ptr()[storage_.size_ - 1].construct(value);
379 }
380
381 void push_back(T&& value) {
382 storage_.bump_size(1);

Calls 3

bump_sizeMethod · 0.45
constructMethod · 0.45
storage_ptrMethod · 0.45

Tested by 15

TestOwnedRefMovesFunction · 0.64
TestOwnedRefNoGILMovesFunction · 0.64
TEST_FFunction · 0.64
TestOverflowFunction · 0.64
TestRandomInputFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
SliceToChunkedArrayMethod · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
ASSERT_OK_AND_ASSIGNFunction · 0.64