Lines Matching defs:other
41 // Copy/move constructors. Move constructor leaves |other| object in empty
43 Status(const Status& other) = default;
44 Status(Status&& other)
45 : value_{std::move(other.value_)}, error_{other.error_} {
46 other.error_ = -1;
50 Status& operator=(const Status& other) = default;
51 Status& operator=(Status&& other) {
52 error_ = other.error_;
53 value_ = std::move(other.value_);
54 other.error_ = -1;
56 std::swap(other.value_, empty);
71 // If |other| is in error state, copy the error code to this object.
74 bool PropagateError(const Status<U>& other) {
75 if (!other.ok() && !other.empty()) {
76 SetError(other.error());
133 // Specialization for status containing no other value but the error code.
144 bool PropagateError(const Status<U>& other) {
145 if (!other.ok() && !other.empty()) {
146 SetError(other.error());