7 This policy makes it possible to wrap functions that take non-const references
8 or pointer to non-const as it's parameters with the intention to write return
16 #include <luabind/out_value_policy.hpp>
23 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/from Lua. ``_1`` means **to** C++, ``_2`` means **from**
36 =============== =============================================================
43 void f1(float& val) { val = val + 10.f; }
44 void f2(float\* val) { \*val = \*val + 10.f; }
48 def("f", &f, **out_value(_1)**)
51 Lua 5.0 Copyright (C) 1994-2003 Tecgraf, PUC-Rio