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

Function construct

include/pybind11/detail/init.h:108–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106// mechanisms.
107template <typename Class>
108void construct(...) {
109 static_assert(!std::is_same<Class, Class>::value /* always false */,
110 "pybind11::init(): init function must return a compatible pointer, "
111 "holder, or value");
112}
113
114// Pointer return v1: the factory function returns a class pointer for a registered class.
115// If we don't need an alias (because this class doesn't have one, or because the final type is

Callers

nothing calls this directly

Calls 7

no_nullptrFunction · 0.85
moveFunction · 0.85
getFunction · 0.85
init_instanceMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected