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

Method AsCustomList

common/value.cc:2160–2166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2158}
2159
2160optional_ref<const CustomListValue> Value::AsCustomList() const& {
2161 if (const auto* alternative = variant_.As<CustomListValue>();
2162 alternative != nullptr) {
2163 return *alternative;
2164 }
2165 return absl::nullopt;
2166}
2167
2168absl::optional<CustomListValue> Value::AsCustomList() && {
2169 if (auto* alternative = variant_.As<CustomListValue>();

Callers 4

LegacyTrivialListValueFunction · 0.45
IsMutableListValueFunction · 0.45
AsLegacyListValueFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected