phobos ~master (2024-10-03T07:50:27Z)
Dub
Repo
RedBlackTree.clear
std
container
rbtree
RedBlackTree
Removes all elements from the container.
Complexity:
O
(1)
class
RedBlackTree
(T, alias less = "a < b", bool allowDuplicates = false)
void
clear
(
)
if
(
is
(
typeof
(
binaryFun
!
less
(
T.init
,
T.init
)))
)
Meta
Source
See Implementation
std
container
rbtree
RedBlackTree
aliases
Elem
Range
insert
constructors
this
functions
back
clear
equalRange
front
lowerBound
opBinaryRight
opEquals
opSlice
remove
removeAny
removeBack
removeFront
removeKey
stableInsert
toHash
toString
upperBound
properties
dup
empty
length
Removes all elements from the container.
Complexity: O(1)