...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Boost.PythonHeader
|
to_python_value
to_python_value
is a model of ResultConverter
which copies its argument into a new Python object.
to_python_value
synopsisnamespace boost { namespace python { templatestruct to_python_value { typedef typename add_reference< typename add_const ::type >::type argument_type; static bool convertible(); PyObject* operator()(argument_type) const; }; }}
to_python_value
observersstatic bool convertible();
true
iff a converter has been registered which can convert T
to python by-value.
PyObject* operator()(argument_type x) const;
convertible() == true
x
to python
T
has been registered, 0
otherwise.
Revised 13 November, 2002
© Copyright Dave Abrahams 2002. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)