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

Method AsList

common/value.h:845–845  ·  view source on GitHub ↗

Performs a checked cast from a value to a list value, returning a non-empty optional with either a value or reference to the list value. Otherwise an empty optional is returned.

Source from the content-addressed store, hash-verified

843 // returning a non-empty optional with either a value or reference to the
844 // list value. Otherwise an empty optional is returned.
845 absl::optional<ListValue> AsList() & { return std::as_const(*this).AsList(); }
846 absl::optional<ListValue> AsList() const&;
847 absl::optional<ListValue> AsList() &&;
848 absl::optional<ListValue> AsList() const&& {

Callers 1

AsMethod · 0.45

Calls 1

AsOptionalFunction · 0.85

Tested by

no test coverage detected