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

Method string release_string_value

common/constant.h:364–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362 }
363
364 ABSL_MUST_USE_RESULT std::string release_string_value() {
365 std::string string;
366 if (auto* alt = absl::get_if<StringConstant>(&mutable_kind()); alt) {
367 string.swap(*alt);
368 }
369 mutable_kind().emplace<absl::monostate>();
370 return string;
371 }
372
373 ABSL_DEPRECATED("duration is no longer considered a builtin type")
374 ABSL_MUST_USE_RESULT bool has_duration_value() const {

Callers

nothing calls this directly

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected