Searched refs:TypeForMoveOnlyHolderWithAddressOf (Results 1 – 2 of 2) sorted by relevance
349 struct TypeForMoveOnlyHolderWithAddressOf { in TEST_SUBMODULE() struct350 TypeForMoveOnlyHolderWithAddressOf(int value) : value{value} { print_created(this); } in TEST_SUBMODULE() argument351 ~TypeForMoveOnlyHolderWithAddressOf() { print_destroyed(this); } in TEST_SUBMODULE() argument357 …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()
288 a = m.TypeForMoveOnlyHolderWithAddressOf.make()291 stats = ConstructorStats.get(m.TypeForMoveOnlyHolderWithAddressOf)