MCPcopy Create free account
hub / github.com/Shannon-Data/ShannonBase / swap

Method swap

include/priority_queue.h:368–371  ·  view source on GitHub ↗

Swaps the contents of two priority queues.

Source from the content-addressed store, hash-verified

366
367 /// Swaps the contents of two priority queues.
368 void swap(Priority_queue &other) {
369 std::swap(static_cast<Base &>(*this), static_cast<Base &>(other));
370 m_container.swap(other.m_container);
371 }
372
373 /// Returns true if the priority queue has the heap property.
374 bool is_valid() const {

Callers 1

swapFunction · 0.45

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected