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

Function CopyConstruct

common/values/error_value.h:139–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 void CopyConstruct(const ErrorValue& other) {
140 arena_ = other.arena_;
141 if (arena_ == nullptr) {
142 ::new (static_cast<void*>(&status_.val[0])) absl::Status(*std::launder(
143 reinterpret_cast<const absl::Status*>(&other.status_.val[0])));
144 } else {
145 status_.ptr = other.status_.ptr;
146 }
147 }
148
149 void MoveConstruct(ErrorValue& other) {
150 arena_ = other.arena_;

Callers 2

ErrorValueFunction · 0.85
error_value.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected