Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ Parent
Method
Parent
tests/test_call_policies.cpp:47–47 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
45
class Parent {
46
public:
47
Parent() { py::print(
"Allocating parent."
); }
48
Parent(const Parent &parent) = default;
49
~Parent() { py::print(
"Releasing parent."
); }
50
void addChild(Child *) {}
Callers
4
test_keep_alive_argument
Function · 0.80
test_keep_alive_return_value
Function · 0.80
test_return_none
Function · 0.80
test_keep_alive_constructor
Function · 0.80
Calls
1
print
Function · 0.85
Tested by
no test coverage detected