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

Method swap

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

Source from the content-addressed store, hash-verified

1431 FreeList() : freeListHead(nullptr) { }
1432 FreeList(FreeList&& other) : freeListHead(other.freeListHead.load(std::memory_order_relaxed)) { other.freeListHead.store(nullptr, std::memory_order_relaxed); }
1433 void swap(FreeList& other) { details::swap_relaxed(freeListHead, other.freeListHead); }
1434
1435 FreeList(FreeList const&) MOODYCAMEL_DELETE_FUNCTION;
1436 FreeList& operator=(FreeList const&) MOODYCAMEL_DELETE_FUNCTION;

Callers

nothing calls this directly

Calls 1

swap_relaxedFunction · 0.85

Tested by

no test coverage detected