Show / Hide Table of Contents

Class HeapArray

Static helpers for HeapArray<T, TCompare>.

Inheritance
System.Object
HeapArray
Namespace: Towel.DataStructures
Assembly: Towel.dll
Syntax
public static class HeapArray : object

Methods

| Improve this Doc View Source

New<T>(Nullable<Func<T, T, CompareResult>>, Nullable<Int32>)

Constructs a new HeapArray<T, TCompare>.

Declaration
public static HeapArray<T, SFunc<T, T, CompareResult>> New<T>(Func<T, T, CompareResult>? compare = null, int? minimumCapacity = null)
Parameters
Type Name Description
System.Nullable<Func<T, T, CompareResult>> compare

The function for comparing T values.

System.Nullable<System.Int32> minimumCapacity

The capacity you want this priority queue to have.

Returns
Type Description
HeapArray<T, SFunc<T, T, CompareResult>>

The newly constructed HeapArray<T, TCompare>.

Type Parameters
Name Description
T

The type of values stored in this data structure.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX