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

Method NewMapEntry

common/expr_factory.h:286–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284 typename = std::enable_if_t<IsExprLike<Key>::value>,
285 typename = std::enable_if_t<IsExprLike<Value>::value>>
286 MapExprEntry NewMapEntry(ExprId id, Key key, Value value,
287 bool optional = false) {
288 MapExprEntry entry;
289 entry.set_id(id);
290 entry.set_key(std::move(key));
291 entry.set_value(std::move(value));
292 entry.set_optional(optional);
293 return entry;
294 }
295
296 template <typename Entries, typename = std::enable_if_t<
297 IsArrayLike<MapExprEntry, Entries>::value>>

Callers 2

TESTFunction · 0.80
visitEntriesMethod · 0.80

Calls 4

set_keyMethod · 0.80
set_idMethod · 0.45
set_valueMethod · 0.45
set_optionalMethod · 0.45

Tested by 1

TESTFunction · 0.64