Home
last modified time | relevance | path

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

/external/python/pybind11/tests/
Dtest_smart_ptr.cpp329 struct TypeForHolderWithAddressOf { in TEST_SUBMODULE() struct
330 TypeForHolderWithAddressOf() { print_created(this); } in TEST_SUBMODULE() argument
331 TypeForHolderWithAddressOf(const TypeForHolderWithAddressOf &) { print_copy_created(this); } in TEST_SUBMODULE() argument
332 TypeForHolderWithAddressOf(TypeForHolderWithAddressOf &&) { print_move_created(this); } in TEST_SUBMODULE() argument
333 ~TypeForHolderWithAddressOf() { print_destroyed(this); } in TEST_SUBMODULE() argument
339 using HolderWithAddressOf = shared_ptr_with_addressof_operator<TypeForHolderWithAddressOf>; in TEST_SUBMODULE()
340 py::class_<TypeForHolderWithAddressOf, HolderWithAddressOf>(m, "TypeForHolderWithAddressOf") in TEST_SUBMODULE()
341 .def_static("make", []() { return HolderWithAddressOf(new TypeForHolderWithAddressOf); }) in TEST_SUBMODULE()
343 … .def("print_object_1", [](const TypeForHolderWithAddressOf *obj) { py::print(obj->toString()); }) in TEST_SUBMODULE()
Dtest_smart_ptr.py259 a = m.TypeForHolderWithAddressOf.make()
265 stats = ConstructorStats.get(m.TypeForHolderWithAddressOf)
268 np = m.TypeForHolderWithAddressOf.make()
275 b = m.TypeForHolderWithAddressOf.make()