Lines Matching refs:Other
94 ErrorOr(const ErrorOr &Other) {
95 copyConstruct(Other);
100 const ErrorOr<OtherT> &Other,
103 copyConstruct(Other);
108 const ErrorOr<OtherT> &Other,
111 copyConstruct(Other);
114 ErrorOr(ErrorOr &&Other) {
115 moveConstruct(std::move(Other));
120 ErrorOr<OtherT> &&Other,
123 moveConstruct(std::move(Other));
130 ErrorOr<OtherT> &&Other,
133 moveConstruct(std::move(Other));
136 ErrorOr &operator=(const ErrorOr &Other) {
137 copyAssign(Other);
141 ErrorOr &operator=(ErrorOr &&Other) {
142 moveAssign(std::move(Other));
177 void copyConstruct(const ErrorOr<OtherT> &Other) {
178 if (!Other.HasError) {
181 new (getStorage()) storage_type(*Other.getStorage());
185 new (getErrorStorage()) std::error_code(Other.getError());
200 void copyAssign(const ErrorOr<OtherT> &Other) {
201 if (compareThisIfSameType(*this, Other))
205 new (this) ErrorOr(Other);
209 void moveConstruct(ErrorOr<OtherT> &&Other) {
210 if (!Other.HasError) {
213 new (getStorage()) storage_type(std::move(*Other.getStorage()));
217 new (getErrorStorage()) std::error_code(Other.getError());
222 void moveAssign(ErrorOr<OtherT> &&Other) {
223 if (compareThisIfSameType(*this, Other))
227 new (this) ErrorOr(std::move(Other));