PriorityQueueElement

public struct PriorityQueueElement<Priority, Payload> where Priority : Comparable
extension PriorityQueueElement: Equatable, Comparable

A comparable tuple containing a comparable priority and an arbitrary payload.

Priority Queue

  • Returns true if the priorities of lhs and rhs are equal, false otherwise.

    Declaration

    Swift

    public static func == (lhs: `Self`, rhs: `Self`) -> Bool
  • Returns true if the priority of lhs is lower than the priority of rhs.

    Declaration

    Swift

    public static func < (lhs: `Self`, rhs: `Self`) -> Bool