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

Method construct2

tests/test_factory_constructors.cpp:188–188  ·  view source on GitHub ↗

Moveable type: pointer:

Source from the content-addressed store, hash-verified

186 // Moveable type:
187 // pointer:
188 static TestFactory2 *construct2() { return new TestFactory2(); }
189 // holder:
190 static std::unique_ptr<TestFactory2> construct2(int a) {
191 return std::unique_ptr<TestFactory2>(new TestFactory2(a));

Callers

nothing calls this directly

Calls 2

TestFactory2Class · 0.85
moveFunction · 0.85

Tested by

no test coverage detected