MCPcopy Create free account
hub / github.com/pybind/pybind11 / MovableObject

Method MovableObject

tests/test_callbacks.cpp:213–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211 bool valid = true;
212
213 MovableObject() = default;
214 MovableObject(const MovableObject &) = default;
215 MovableObject &operator=(const MovableObject &) = default;
216 MovableObject(MovableObject &&o) noexcept : valid(o.valid) { o.valid = false; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected