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

Method NewStruct

parser/macro_expr_factory.h:202–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 typename = std::enable_if_t<
201 std::conjunction_v<IsRValue<StructExprField, Fields>...>>>
202 ABSL_MUST_USE_RESULT Expr NewStruct(Name name, Fields&&... fields) {
203 std::vector<StructExprField> array;
204 array.reserve(sizeof...(Fields));
205 (array.push_back(std::forward<Fields>(fields)), ...);
206 return NewStruct(NextId(), std::move(name), std::move(array));
207 }
208
209 template <
210 typename Name, typename Fields,

Callers 2

TESTFunction · 0.45
visitCreateMessageMethod · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36