adopt.rst.svn-base
来自「本人找过多个在linux下c++的lua5.1封装库,但很少.luabind已经」· SVN-BASE 代码 · 共 49 行
SVN-BASE
49 行
adopt----------------Motivation~~~~~~~~~~Used to transfer ownership across language boundaries.Defined in~~~~~~~~~~.. parsed-literal:: #include <luabind/adopt_policy.hpp>Synopsis~~~~~~~~.. parsed-literal:: adopt(index)Parameters~~~~~~~~~~============= ===============================================================Parameter Purpose============= ===============================================================``index`` The index which should transfer ownership, ``_N`` or ``result``============= ===============================================================Example~~~~~~~.. parsed-literal:: X* create() { return new X; } ... module(L) [ def("create", &create, **adopt(result)**) ];
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?