A ResultConverter for a type T
is a type whose instances can be used to convert C++ return values of type
T
to_python
.
A ResultConverterGenerator is an MPL unary metafunction class which, given
the return type of a C++ function, returns a ResultConverter for that type.
ResultConverters in Boost.Python generally inspect library's registry of
converters to find a suitable converter, but converters which don't use
the registry are also possible.
In the table below, C
denotes
a ResultConverter type for a type R
,
c
denotes an object of
type C
, and r
denotes an object of type R
.
Expression |
Type |
Semantics |
---|---|---|
|
Constructs a |
|
|
convertible to |
|
|
convertible to |
A pointer to a Python object corresponding to |
|
|
A pointer to a Python Type object corresponding to result of
the conversion, or |
In the table below, G
denotes
a ResultConverterGenerator type and R
denotes a possible C++ function return type.
Expression |
Requirements |
---|---|
|
A ResultConverter type for |