The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
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)