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

Method AsMessage

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

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

Source from the content-addressed store, hash-verified

863 // returning a non-empty optional with either a value or reference to the
864 // message value. Otherwise an empty optional is returned.
865 absl::optional<MessageValue> AsMessage() & {
866 return std::as_const(*this).AsMessage();
867 }
868 absl::optional<MessageValue> AsMessage() const&;
869 absl::optional<MessageValue> AsMessage() &&;
870 absl::optional<MessageValue> AsMessage() const&& {

Callers 1

AsMethod · 0.45

Calls 1

AsOptionalFunction · 0.85

Tested by

no test coverage detected