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

Method MoveFrom

cpp/src/arrow/testing/gtest_util.h:520–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518 }
519
520 void MoveFrom(MoveOnlyDataType* other) {
521 Destroy();
522 data = other->data;
523 other->data = nullptr;
524 moves = other->moves + 1;
525 }
526
527 int ToInt() const { return data == nullptr ? -42 : *data; }
528

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected