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

Method NewMap

parser/macro_expr_factory.h:227–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225 template <typename... Entries, typename = std::enable_if_t<std::conjunction_v<
226 IsRValue<MapExprEntry, Entries>...>>>
227 ABSL_MUST_USE_RESULT Expr NewMap(Entries&&... entries) {
228 std::vector<MapExprEntry> array;
229 array.reserve(sizeof...(Entries));
230 (array.push_back(std::forward<Entries>(entries)), ...);
231 return NewMap(NextId(), std::move(array));
232 }
233
234 template <typename Entries, typename = std::enable_if_t<
235 IsArrayLike<MapExprEntry, Entries>::value>>

Callers 2

TESTFunction · 0.45
visitCreateMapMethod · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36