The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
SList.reverse
std
container
slist
SList
Reverses SList in-place. Performs no memory allocation.
Complexity:
O
(n)
struct
SList
(T)
void
reverse
(
)
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
Reverses SList in-place. Performs no memory allocation.
Complexity: O(n)