| 712 | } |
| 713 | |
| 714 | void swap(ConsumerToken& other) MOODYCAMEL_NOEXCEPT |
| 715 | { |
| 716 | std::swap(initialOffset, other.initialOffset); |
| 717 | std::swap(lastKnownGlobalOffset, other.lastKnownGlobalOffset); |
| 718 | std::swap(itemsConsumedFromCurrent, other.itemsConsumedFromCurrent); |
| 719 | std::swap(currentProducer, other.currentProducer); |
| 720 | std::swap(desiredProducer, other.desiredProducer); |
| 721 | } |
| 722 | |
| 723 | // Disable copying and assignment |
| 724 | ConsumerToken(ConsumerToken const&) MOODYCAMEL_DELETE_FUNCTION; |