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

Method release_value

common/decl.h:100–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 void set_value(Constant value) { mutable_value() = std::move(value); }
99
100 ABSL_MUST_USE_RESULT Constant release_value() {
101 absl::optional<Constant> released;
102 released.swap(value_);
103 return std::move(released).value_or(Constant{});
104 }
105
106 private:
107 std::string name_;

Callers

nothing calls this directly

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected