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

Method construct1

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

Non-movable, non-copyable type: Return via pointer:

Source from the content-addressed store, hash-verified

174 // Non-movable, non-copyable type:
175 // Return via pointer:
176 static TestFactory1 *construct1() { return new TestFactory1(); }
177 // Holder:
178 static std::unique_ptr<TestFactory1> construct1(int a) {
179 return std::unique_ptr<TestFactory1>(new TestFactory1(a));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected