MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / swap

Method swap

deps/concurrentqueue/concurrentqueue.h:714–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected