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

Method init_by_copying

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

Source from the content-addressed store, hash-verified

460 private:
461 template <typename InputIt>
462 void init_by_copying(size_t n, InputIt src) {
463 storage_.bump_size(n);
464 auto* dest = storage_.storage_ptr();
465 for (size_t i = 0; i < n; ++i, ++src) {
466 dest[i].construct(*src);
467 }
468 }
469
470 template <typename InputIt>
471 void init_by_moving(size_t n, InputIt src) {

Callers

nothing calls this directly

Calls 3

bump_sizeMethod · 0.45
storage_ptrMethod · 0.45
constructMethod · 0.45

Tested by

no test coverage detected