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

Method move_construct

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

Move objects from another storage, but don't destroy any objects currently stored in *this. You need to call destroy() first if necessary (e.g. in a move assignment operator).

Source from the content-addressed store, hash-verified

89 // You need to call destroy() first if necessary (e.g. in a
90 // move assignment operator).
91 void move_construct(StaticVectorStorage&& other) noexcept {
92 size_ = other.size_;
93 if (size_ != 0) {
94 // Use a compile-time memcpy size (N) for trivial types
95 storage_type::move_construct_several(other.static_data_, static_data_, size_, N);
96 }
97 }
98
99 constexpr size_t capacity() const { return N; }
100

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected