The OpenD Programming Language

TTree.remove

Removes a single value from the tree, or does nothing.

If allowDuplicates is true only a single element that is equivalent to the given value will be removed. Which of these elements is removed is not defined.

struct TTree(T, Allocator = Mallocator, bool allowDuplicates = false, alias less = "a < b", bool supportGC = shouldAddGCRange!T, size_t cacheLineSize = 64)
bool
remove
(,
void delegate
(
T
)
cleanup = null
)

Parameters

value T

a value equal to the one to be removed

cleanup void delegate
(
T
)

a function that should be run on the removed item Retuns: true if any value was removed

Meta