Search Results for

    Show / Hide Table of Contents

    PriorityQueue Constructor

    Namespace: Riptide.Utils
    Assembly: RiptideNetworking.dll

    Overloads

    PriorityQueue(int)

    Initializes a new instance of the PriorityQueue<TElement, TPriority> class.

    PriorityQueue(IComparer<TPriority>, int)

    Initializes a new instance of the PriorityQueue<TElement, TPriority> class with the specified custom priority comparer.

    PriorityQueue(int)

    Initializes a new instance of the PriorityQueue<TElement, TPriority> class.

    public PriorityQueue(int capacity = 8)

    Parameters

    int capacity

    Initial capacity to allocate for the underlying heap array.

    PriorityQueue(IComparer<TPriority>, int)

    Initializes a new instance of the PriorityQueue<TElement, TPriority> class with the specified custom priority comparer.

    public PriorityQueue(IComparer<TPriority> comparer, int capacity = 8)

    Parameters

    IComparer<TPriority> comparer

    Custom comparer dictating the ordering of elements.

    int capacity

    Initial capacity to allocate for the underlying heap array.

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