phobos ~master (2024-10-03T07:50:27Z)
Dub
Repo
SList.clear
std
container
slist
SList
Removes all contents from the
SList
.
Postcondition:
empty
Complexity:
O
(1)
struct
SList
(T)
void
clear
(
)
if
(
!
is
(
T
== shared)
)
Meta
Source
See Implementation
std
container
slist
SList
aliases
insert
stableInsert
stableInsertAfter
stableInsertFront
stableLinearRemove
stableRemoveAny
stableRemoveFront
constructors
this
functions
clear
insertAfter
insertFront
linearRemove
linearRemoveElement
opBinary
opBinaryRight
opEquals
opSlice
removeAny
removeFront
reverse
properties
dup
empty
front
structs
Range
Removes all contents from the SList.
Postcondition: empty
Complexity: O(1)