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

Method AsCustomMap

common/value.cc:2176–2182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2174}
2175
2176optional_ref<const CustomMapValue> Value::AsCustomMap() const& {
2177 if (const auto* alternative = variant_.As<CustomMapValue>();
2178 alternative != nullptr) {
2179 return *alternative;
2180 }
2181 return absl::nullopt;
2182}
2183
2184absl::optional<CustomMapValue> Value::AsCustomMap() && {
2185 if (auto* alternative = variant_.As<CustomMapValue>();

Callers 4

LegacyTrivialMapValueFunction · 0.45
IsMutableMapValueFunction · 0.45
AsLegacyMapValueFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected