Searched refs:HolderWithAddressOf (Results 1 – 1 of 1) sorted by relevance
339 using HolderWithAddressOf = shared_ptr_with_addressof_operator<TypeForHolderWithAddressOf>; in TEST_SUBMODULE() typedef340 py::class_<TypeForHolderWithAddressOf, HolderWithAddressOf>(m, "TypeForHolderWithAddressOf") in TEST_SUBMODULE()341 .def_static("make", []() { return HolderWithAddressOf(new TypeForHolderWithAddressOf); }) in TEST_SUBMODULE()342 .def("get", [](const HolderWithAddressOf &self) { return self.get(); }) in TEST_SUBMODULE()344 .def("print_object_2", [](HolderWithAddressOf obj) { py::print(obj.get()->toString()); }) in TEST_SUBMODULE()345 … .def("print_object_3", [](const HolderWithAddressOf &obj) { py::print(obj.get()->toString()); }) in TEST_SUBMODULE()346 ….def("print_object_4", [](const HolderWithAddressOf *obj) { py::print((*obj).get()->toString()); }… in TEST_SUBMODULE()