7 This works exactly like ``out_value``, except that it will pass a
8 default constructed object instead of converting an argument from
9 Lua. This means that the parameter will be removed from the lua
17 #include <luabind/out_value_policy.hpp>
24 pure_out_value(index, policies = none)
30 =============== =============================================================
32 =============== =============================================================
33 ``index`` The index of the parameter to be used as an out parameter.
34 ``policies`` The policies used internally to convert the out parameter
35 to Lua. ``_1`` is used as the internal index.
36 =============== =============================================================
41 Note that no values are passed to the calls to ``f1`` and ``f2``.
45 void f1(float& val) { val = 10.f; }
46 void f2(float\* val) { \*val = 10.f; }
50 def("f", &f, **pure_out_value(_1)**)
53 Lua 5.0 Copyright (C) 1994-2003 Tecgraf, PUC-Rio