Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ ConvertibleFromUserType
Method
ConvertibleFromUserType
tests/test_class.cpp:281–281 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
279
int i;
280
281
explicit ConvertibleFromUserType(UserType u) : i(u.value()) {}
282
};
283
284
py::class_<ConvertibleFromUserType>(m,
"AcceptsUserType"
).def(py::init<UserType>());
Callers
nothing calls this directly
Calls
1
value
Method · 0.45
Tested by
no test coverage detected