网站首页
编程语言
数据库
系统相关
其他分享
编程问答
cythonize
2024-07-22
如何将可选类型从 C++ 传递到 Cython?
我正在尝试将可选参数从C++传递到Cython文件。我不必将其写入.pxd和.pyx文件中:[C++]std::optional<std::shared_ptr<CPP_MyObject>>cpp_find_value();[.pxd]shared_ptr[CPP_MyObject]cpp_find_value()#fixme[.pyx]defpython_find_value(self)