7 This works exactly like ``out_value``, except that it will pass a
8 default constructed object instead of converting an argument from
16 #include <luabind/out_value_policy.hpp>
23 pure_out_value(index, policies = none)
29 =============== =============================================================
31 =============== =============================================================
32 ``index`` The index of the parameter to be used as an out parameter.
33 ``policies`` The policies used internally to convert the out parameter
34 to Lua. ``_1`` is used as the internal index.
35 =============== =============================================================
42 void f1(float& val) { val = 10.f; }
43 void f2(float\* val) { \*val = 10.f; }
47 def("f", &f, **pure_out_value(_1)**)
50 Lua 5.0 Copyright (C) 1994-2003 Tecgraf, PUC-Rio