BoB robotics
The Brains on Board robotics library
pybind11::custom_type_setup Struct Reference

#include <attr.h>

Public Types

using callback = std::function< void(PyHeapTypeObject *heap_type)>
 

Public Member Functions

 custom_type_setup (callback value)
 

Public Attributes

callback value
 

Detailed Description

Specifies a custom callback with signature void (PyHeapTypeObject*) that may be used to customize the Python type.

The callback is invoked immediately before PyType_Ready.

Note: This is an advanced interface, and uses of it may require changes to work with later versions of pybind11. You may wish to consult the implementation of make_new_python_type in detail/classes.h to understand the context in which the callback will be run.


The documentation for this struct was generated from the following file: