Lines Matching defs:Other
52 Error(Error &&Other) {
54 *this = std::move(Other);
61 Error &operator=(Error &&Other) {
64 setPtr(Other.getPtr());
69 // Null out Other's payload and set its checked bit.
70 Other.setPtr(nullptr);
71 Other.setChecked(true);
216 Expected(Expected &&Other) { moveConstruct(std::move(Other)); }
222 Expected<OtherT> &&Other,
224 moveConstruct(std::move(Other));
231 Expected<OtherT> &&Other,
233 moveConstruct(std::move(Other));
237 Expected &operator=(Expected &&Other) {
238 moveAssign(std::move(Other));
312 template <class OtherT> void moveConstruct(Expected<OtherT> &&Other) {
313 HasError = Other.HasError;
315 Other.Unchecked = false;
318 new (getStorage()) storage_type(std::move(*Other.getStorage()));
320 new (getErrorStorage()) error_type(std::move(*Other.getErrorStorage()));
323 template <class OtherT> void moveAssign(Expected<OtherT> &&Other) {
326 if (compareThisIfSameType(*this, Other))
330 new (this) Expected(std::move(Other));