| 746 | } |
| 747 | |
| 748 | void swap(ConsumerToken& other) MOODYCAMEL_NOEXCEPT |
| 749 | { |
| 750 | std::swap(initialOffset, other.initialOffset); |
| 751 | std::swap(lastKnownGlobalOffset, other.lastKnownGlobalOffset); |
| 752 | std::swap(itemsConsumedFromCurrent, other.itemsConsumedFromCurrent); |
| 753 | std::swap(currentProducer, other.currentProducer); |
| 754 | std::swap(desiredProducer, other.desiredProducer); |
| 755 | } |
| 756 | |
| 757 | // Disable copying and assignment |
| 758 | ConsumerToken(ConsumerToken const&) MOODYCAMEL_DELETE_FUNCTION; |