Search Results for

    Show / Hide Table of Contents

    PriorityQueue<TElement, TPriority>.TryDequeue Method

    Namespace: Riptide.Utils
    Assembly: RiptideNetworking.dll

    TryDequeue(out TElement, out TPriority)

    Removes the lowest priority element from the PriorityQueue<TElement, TPriority> and copies it and its associated priority to the element and priority arguments.

    public bool TryDequeue(out TElement element, out TPriority priority)

    Parameters

    TElement element

    When this method returns, contains the removed element.

    TPriority priority

    When this method returns, contains the priority associated with the removed element.

    Returns

    bool

    true if the element is successfully removed; false if the PriorityQueue<TElement, TPriority> is empty.

    • Improve this Doc
    • View Source
    • Support Riptide
    In This Article
    Back to top Copyright © Tom Weiland 2022
    Made with DocFX