MCPcopy Create free account
hub / github.com/pybind/pybind11 / from_data

Method from_data

include/pybind11/pybind11.h:486–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484 remove_reference_t<Func> f;
485
486 static capture *from_data(void **data) {
487 return PYBIND11_STD_LAUNDER(reinterpret_cast<capture *>(data));
488 }
489 };
490
491 /* Store the function including any extra state it might have (e.g. a lambda capture

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected