BTree.remove

Removes (at most) one element from the tree.

struct BTree(T, BTreeParameters params = BTreeParameters.init, Allocator = Mallocator)
bool
remove
(
in T x
,
scope void delegate
(
ref T
)
nothrow @nogc
destroy = null
)

Parameters

x T

element being looked up in the tree

destroy void delegate
(
ref T
)
nothrow @nogc

callback to cleanup after the element being removed (if found); defaults to object.destroy.

Return Value

Type: bool

Whether or not at least one x was contained in the tree.