| 555 | } |
| 556 | |
| 557 | void swap(ConsumerToken& other) noexcept |
| 558 | { |
| 559 | std::swap(initialOffset, other.initialOffset); |
| 560 | std::swap(lastKnownGlobalOffset, other.lastKnownGlobalOffset); |
| 561 | std::swap(itemsConsumedFromCurrent, other.itemsConsumedFromCurrent); |
| 562 | std::swap(currentProducer, other.currentProducer); |
| 563 | std::swap(desiredProducer, other.desiredProducer); |
| 564 | } |
| 565 | |
| 566 | // Disable copying and assignment |
| 567 | ConsumerToken(ConsumerToken const&) = delete; |