Lines Matching defs:other
48 optional(const optional& other) {
49 *this = other;
57 optional(optional& other) {
58 *this = other;
61 optional(optional&& other) {
62 *this = std::move(other);
75 optional& operator=(const optional& other) {
76 if (this != &other) {
78 if (other.fHasValue) {
79 fPayload.fValue = other.fPayload.fValue;
84 if (other.fHasValue) {
86 new (&fPayload.fValue) T(other.fPayload.fValue);
95 optional& operator=(optional&& other) {
96 if (this != &other) {
98 if (other.fHasValue) {
99 fPayload.fValue = std::move(other.fPayload.fValue);
104 if (other.fHasValue) {
106 new (&fPayload.fValue) T(std::move(other.fPayload.fValue));