The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
SList.clear
containers
slist
SList
Removes all elements from the range
Complexity: O(length)
struct
SList
(T, Allocator = Mallocator, bool supportGC = shouldAddGCRange!T)
void
clear
(
)
Meta
Source
See Implementation
containers
slist
SList
aliases
insert
insertAnywhere
put
constructors
this
functions
back
clear
empty
front
insertFront
length
moveFront
opOpAssign
opSlice
popFront
remove
postblits
this(this)
Removes all elements from the range
Complexity: O(length)