|
Boost.PythonHeader <boost/python/args.hpp> |
args(
...)
Supplies a family of overloaded functions for specifying argument keywords for wrapped C++ functions.
A keyword-expression results in an object which holds a sequence of ntbses, and whose type encodes the number of keywords specified.
args(
...)
unspecified1 args(char const*); unspecified2 args(char const*, char const*); . . . unspecifiedN args(char const*, char const*, ... char const*);
#include <boost/python/def.hpp> using namespace boost::python; int f(int x, int y, int z); BOOST_PYTHON_MODULE(xxx) { def("f", f, args("x", "y", "z")); }
Revised 05 November, 2001
© Copyright Dave Abrahams 2002. All Rights Reserved.