Table of Contents

Method TryPeek

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

TryPeek(out (int index, TElement value))

Peeks at the minimum element of the priority queue if it is not empty.

public bool TryPeek(out (int index, TElement value) result)

Parameters

result (int index, TElement value)

A tuple containing the index and value of the minimum element.

Returns

bool

true if the queue was not empty; otherwise, false.