MCPcopy Create free account
hub / github.com/PatWie/CppNumericalSolvers / clone

Method clone

include/cppoptlib/function_base.h:257–259  ·  view source on GitHub ↗

Exposes the stored interface for mode-downgrading converting construction into a weaker-mode `FunctionExpr`. Returns a deep-copied interface pointer so the caller owns independent lifetime; `FunctionExpr` itself does not implement `FunctionInterface` so this is not `virtual`.

Source from the content-addressed store, hash-verified

255 // lifetime; `FunctionExpr` itself does not implement
256 // `FunctionInterface` so this is not `virtual`.
257 std::unique_ptr<FunctionInterface<TScalar, TMode, TDimension>> clone() const {
258 return ptr ? ptr->clone() : nullptr;
259 }
260};
261
262// Deduction guide for FunctionExpr.

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected