MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / MoveConstruct

Function MoveConstruct

common/values/error_value.h:149–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 }
148
149 void MoveConstruct(ErrorValue& other) {
150 arena_ = other.arena_;
151 if (arena_ == nullptr) {
152 ::new (static_cast<void*>(&status_.val[0]))
153 absl::Status(std::move(*std::launder(
154 reinterpret_cast<absl::Status*>(&other.status_.val[0]))));
155 } else {
156 status_.ptr = other.status_.ptr;
157 }
158 }
159
160 void Destruct() {
161 if (arena_ == nullptr) {

Callers 2

ErrorValueFunction · 0.85
error_value.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected