The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
Vector.shrink
automem
vector
Vector
Shrink to fit the current length. Returns if shrunk.
bool
shrink
()
struct
Vector
(E, Allocator = typeof(theAllocator))
scope
static if
(
isElementMutable
)
bool
shrink
(
)
if
(
isAllocator
!
Allocator
)
bool
shrink
(long newLength)
Meta
Source
See Implementation
automem
vector
Vector
functions
capacity
clear
empty
free
opAssign
opBinary
opIndex
opOpAssign
opSlice
opSliceAssign
opSliceOpAssign
popBack
popFront
range
reserve
shrink
stringz
properties
length
Shrink to fit the current length. Returns if shrunk.