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

Method string release_bytes_value

common/constant.h:327–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325 }
326
327 ABSL_MUST_USE_RESULT std::string release_bytes_value() {
328 std::string string;
329 if (auto* alt = absl::get_if<BytesConstant>(&mutable_kind()); alt) {
330 string.swap(*alt);
331 }
332 mutable_kind().emplace<absl::monostate>();
333 return string;
334 }
335
336 ABSL_MUST_USE_RESULT bool has_string_value() const {
337 return absl::holds_alternative<StringConstant>(kind());

Callers

nothing calls this directly

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected