BTree.remove

Erase an item from the tree.

struct BTree(K, V, alias less = "a < b", bool allowDuplicates = false, bool duplicateKeyIsUB = false)
nothrow @nogc
size_t
remove
(
K key
)

Parameters

key K

Key to remove.

Return Value

Type: size_t

Number of removed items, can be 0 or 1. In case of dupe keys, remove only one of them.

Meta