Home
last modified time | relevance | path

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

/external/python/pybind11/tests/
Dtest_smart_ptr.cpp349 struct TypeForMoveOnlyHolderWithAddressOf { in TEST_SUBMODULE() struct
350 TypeForMoveOnlyHolderWithAddressOf(int value) : value{value} { print_created(this); } in TEST_SUBMODULE() argument
351 ~TypeForMoveOnlyHolderWithAddressOf() { print_destroyed(this); } in TEST_SUBMODULE() argument
357 …veOnlyHolderWithAddressOf = unique_ptr_with_addressof_operator<TypeForMoveOnlyHolderWithAddressOf>; in TEST_SUBMODULE()
358 …py::class_<TypeForMoveOnlyHolderWithAddressOf, MoveOnlyHolderWithAddressOf>(m, "TypeForMoveOnlyHol… in TEST_SUBMODULE()
359 …atic("make", []() { return MoveOnlyHolderWithAddressOf(new TypeForMoveOnlyHolderWithAddressOf(0));… in TEST_SUBMODULE()
360 .def_readwrite("value", &TypeForMoveOnlyHolderWithAddressOf::value) in TEST_SUBMODULE()
361 ….def("print_object", [](const TypeForMoveOnlyHolderWithAddressOf *obj) { py::print(obj->toString()… in TEST_SUBMODULE()
Dtest_smart_ptr.py288 a = m.TypeForMoveOnlyHolderWithAddressOf.make()
291 stats = ConstructorStats.get(m.TypeForMoveOnlyHolderWithAddressOf)