LinkedListQueue.remove

Removes a value from queue, in O(n)

class LinkedListQueue(T, alias gc_tracking_policy = GCTrackingPolicy.refTypesOnly)
size_t
remove
(,
bool all = false
)

Parameters

value T

value to remove

all bool

if true then remove all values equal to value, othetrwise only first matching value will be removed

Return Value

Type: size_t

number of removed values

Meta