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

Method AsParsedJsonMap

common/value.cc:2144–2150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2142}
2143
2144optional_ref<const ParsedJsonMapValue> Value::AsParsedJsonMap() const& {
2145 if (const auto* alternative = variant_.As<ParsedJsonMapValue>();
2146 alternative != nullptr) {
2147 return *alternative;
2148 }
2149 return absl::nullopt;
2150}
2151
2152absl::optional<ParsedJsonMapValue> Value::AsParsedJsonMap() && {
2153 if (auto* alternative = variant_.As<ParsedJsonMapValue>();

Callers 3

LegacyTrivialMapValueFunction · 0.45
EqualMethod · 0.45
EqualMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected