Home
last modified time | relevance | path

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

/external/python/pybind11/tests/
Dtest_callbacks.cpp130 struct MovableObject { in TEST_SUBMODULE() struct
133 MovableObject() = default; in TEST_SUBMODULE()
134 MovableObject(const MovableObject &) = default; in TEST_SUBMODULE()
135 MovableObject &operator=(const MovableObject &) = default; in TEST_SUBMODULE()
136 MovableObject(MovableObject &&o) : valid(o.valid) { o.valid = false; } in TEST_SUBMODULE() function
137 MovableObject &operator=(MovableObject &&o) { in TEST_SUBMODULE() argument
143 py::class_<MovableObject>(m, "MovableObject"); in TEST_SUBMODULE()
146 m.def("callback_with_movable", [](std::function<void(MovableObject &)> f) { in TEST_SUBMODULE()
147 auto x = MovableObject(); in TEST_SUBMODULE()