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`.
| 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. |