MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / apply

Method apply

lib/infer.cpp:157–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155
156 template<class F>
157 static std::vector<MathLib::bigint> apply(const std::vector<MathLib::bigint>& x,
158 const std::vector<MathLib::bigint>& y,
159 F f)
160 {
161 if (x.empty())
162 return {};
163 if (y.empty())
164 return {};
165 return {f(x.front(), y.front())};
166 }
167
168 static std::vector<const ValueFlow::Value*> merge(std::vector<const ValueFlow::Value*> x,
169 const std::vector<const ValueFlow::Value*>& y)

Callers

nothing calls this directly

Calls 3

frontMethod · 0.80
fFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected