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

Function MakeOverloadDecl

common/decl.h:213–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211
212template <typename... Args>
213OverloadDecl MakeOverloadDecl(Type result, Args&&... args) {
214 OverloadDecl overload_decl;
215 overload_decl.set_result(std::move(result));
216 overload_decl.set_member(false);
217 auto& mutable_args = overload_decl.mutable_args();
218 mutable_args.reserve(sizeof...(Args));
219 (mutable_args.push_back(std::forward<Args>(args)), ...);
220 return overload_decl;
221}
222
223// Prefer the version of `MakeOverloadDecl` that does not specify the id.
224// This version is less robust than the version that automatically generates a

Callers 15

SubsetTestlibConfigurerFunction · 0.85
TESTFunction · 0.85
AddArithmeticOpsFunction · 0.85
AddLogicalOpsFunction · 0.85
AddTypeConversionsFunction · 0.85
AddEqualityOpsFunction · 0.85
AddContainerOpsFunction · 0.85
AddRelationOpsFunction · 0.85
AddRegexFunctionsFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls 3

set_memberMethod · 0.80
set_resultMethod · 0.45
set_idMethod · 0.45

Tested by 10

SubsetTestlibConfigurerFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
MakeIdentFunctionFunction · 0.68
RegisterMinimalBuiltinsFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
CreateCompilerFunction · 0.68