Swap assignment operator (noexcept)
| 17 | |
| 18 | // Swap assignment operator (noexcept) |
| 19 | void Truckload::swap(Truckload& other) noexcept |
| 20 | { |
| 21 | m_boxes.swap(other.m_boxes); |
| 22 | } |
| 23 | |
| 24 | // Optional yet conventional non-member function (forwards to member function) |
| 25 | void swap(Truckload& one, Truckload& other) noexcept |