Template Class PairingHeap
Defined in File PairingHeap.h
Nested Relationships
Nested Types
Class Documentation
-
template<class T, std::totally_ordered P = int, bool Aux = false>
class PairingHeap a priority queue on a pairing heap, two-pass, or auxiliary two-pass if Aux
Public Types
Public Functions
-
PairingHeap(void) = default
-
PairingHeap(const PairingHeap&) = delete
-
PairingHeap &operator=(const PairingHeap&) = delete
-
PairingHeap(PairingHeap &&other) noexcept
the items of other, which is left empty; its handles stay valid here
-
~PairingHeap()
-
inline bool empty(void) const
-
inline int size(void) const
-
Handle insert(const T &x, const P &p)
a tree of one node linked with the root, or put in the list
- Post:
one item more
-
struct Node
a node of the heap
-
PairingHeap(void) = default