MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / swap

Method swap

concurrentqueue.h:748–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected