| 656 | } |
| 657 | |
| 658 | void swap(ConsumerToken& other) MOODYCAMEL_NOEXCEPT |
| 659 | { |
| 660 | std::swap(initialOffset, other.initialOffset); |
| 661 | std::swap(lastKnownGlobalOffset, other.lastKnownGlobalOffset); |
| 662 | std::swap(itemsConsumedFromCurrent, other.itemsConsumedFromCurrent); |
| 663 | std::swap(currentProducer, other.currentProducer); |
| 664 | std::swap(desiredProducer, other.desiredProducer); |
| 665 | } |
| 666 | |
| 667 | // Disable copying and assignment |
| 668 | ConsumerToken(ConsumerToken const&) MOODYCAMEL_DELETE_FUNCTION; |