Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ Dog
Method
Dog
tests/pybind11_cross_module_tests.cpp:137–137 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
135
class Dog : public pets::Pet {
136
public:
137
explicit Dog(std::string name) : Pet(std::move(name)) {}
138
};
139
py::class_<pets::Pet>(m,
"Pet"
, py::module_local()).def(
"name"
, &pets::Pet::name);
140
// Binding for local extending class:
Callers
nothing calls this directly
Calls
1
move
Function · 0.85
Tested by
no test coverage detected