Searched refs:construct2 (Results 1 - 1 of 1) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_factory_constructors.cpp128 static TestFactory2 *construct2() { return new TestFactory2(); } function in class:TestFactoryHelper
130 static std::unique_ptr<TestFactory2> construct2(int a) { return std::unique_ptr<TestFactory2>(new TestFactory2(a)); } function in class:TestFactoryHelper
132 static TestFactory2 construct2(std::string a) { return TestFactory2(a); } function in class:TestFactoryHelper
172 .def(py::init([](pointer_tag, int v) { return TestFactoryHelper::construct2(v); }))
173 .def(py::init([](unique_ptr_tag, std::string v) { return TestFactoryHelper::construct2(v); }))
174 .def(py::init([](move_tag) { return TestFactoryHelper::construct2(); }))

Completed in 5 milliseconds