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

Method AsMap

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

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

Source from the content-addressed store, hash-verified

853 // returning a non-empty optional with either a value or reference to the
854 // map value. Otherwise an empty optional is returned.
855 absl::optional<MapValue> AsMap() & { return std::as_const(*this).AsMap(); }
856 absl::optional<MapValue> AsMap() const&;
857 absl::optional<MapValue> AsMap() &&;
858 absl::optional<MapValue> AsMap() const&& {

Callers 1

AsMethod · 0.45

Calls 1

AsOptionalFunction · 0.85

Tested by

no test coverage detected