Home
last modified time | relevance | path

Searched refs:custom_unique_ptr (Results 1 – 1 of 1) sorted by relevance

/external/python/pybind11/tests/
Dtest_smart_ptr.cpp50 class custom_unique_ptr { class
53 custom_unique_ptr(T* p) : impl(p) { } in custom_unique_ptr() function in custom_unique_ptr
57 PYBIND11_DECLARE_HOLDER_TYPE(T, custom_unique_ptr<T>);
324 py::class_<C, custom_unique_ptr<C>>(m, "TypeWithMoveOnlyHolder") in TEST_SUBMODULE()
325 .def_static("make", []() { return custom_unique_ptr<C>(new C); }) in TEST_SUBMODULE()
326 .def_static("make_as_object", []() { return py::cast(custom_unique_ptr<C>(new C)); }); in TEST_SUBMODULE()