| 426 | } |
| 427 | |
| 428 | void swap(list& other) { |
| 429 | if (this != &other) { |
| 430 | Node* temp_head = mHead; |
| 431 | fl::size temp_size = mSize; |
| 432 | memory_resource* temp_resource = mResource; |
| 433 | |
| 434 | mHead = other.mHead; |
| 435 | mSize = other.mSize; |
| 436 | mResource = other.mResource; |
| 437 | |
| 438 | other.mHead = temp_head; |
| 439 | other.mSize = temp_size; |
| 440 | other.mResource = temp_resource; |
| 441 | } |
| 442 | } |
| 443 | |
| 444 | // Operations |
| 445 | void remove(const T& value) { |