discard_result.rst.svn-base
来自「本人找过多个在linux下c++的lua5.1封装库,但很少.luabind已经」· SVN-BASE 代码 · 共 47 行
SVN-BASE
47 行
discard_result----------------Motivation~~~~~~~~~~This is a very simple policy which makes it possible to throw away the value returned by a C++ function, instead of converting it to Lua.Defined in~~~~~~~~~~.. parsed-literal:: #include <luabind/discard_result_policy.hpp>Synopsis~~~~~~~~.. parsed-literal:: discard_resultExample~~~~~~~.. parsed-literal:: struct X { X& set(T n) { ... return \*this; } }; ... module(L) [ class_<X>("X") .def("set", &simple::set, **discard_result**) ];
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?