SuperLinq SuperLinq
SuperLinq SuperLinq
DocFX + Singulink = ♥

Search Results for

    Method TryPeek

    TryPeek(out TElement, out TPriority)

    Returns a value that indicates whether there is a minimal element in the UpdatablePriorityQueue<TElement, TPriority>, and if one is present, copies it to the element parameter, and its associated priority to the priority parameter. The element is not removed from the UpdatablePriorityQueue<TElement, TPriority>.

    Declaration
    public bool TryPeek(out TElement element, out TPriority priority)
    Parameters
    Type Name Description
    TElement element

    The minimal element in the queue.

    TPriority priority

    The priority associated with the minimal element.

    Returns
    Type Description
    bool

    true if there is a minimal element; false if the UpdatablePriorityQueue<TElement, TPriority> is empty.

    © SuperLinq Authors. All rights reserved.