A classe SplHeap

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Introdução

A classe SplHeap fornece as principais funcionalidades de um Heap.

Resumo da classe

abstract class SplHeap implements Iterator, Countable {
/* Métodos */
protected compare(mixed $value1, mixed $value2): int
public count(): int
public current(): mixed
public extract(): mixed
public insert(mixed $value): true
public isCorrupted(): bool
public isEmpty(): bool
public key(): int
public next(): void
public rewind(): void
public top(): mixed
public valid(): bool
}

Table of Contents