phobos-next ~master (2024-03-19T05:49:32Z)
Home
Dub
Repo
reserveWithGrowth
nxt
container
common
Reserve room for
extra
more elements in
x
.
size_t
reserveWithGrowth
(
GrowthStrategy
gs
T
)
(
ref
T
x
,
size_t
extra
)
if
(
is
(
typeof
(
T.init.capacity
) :
size_t
) &&
is
(
typeof
(
x.reserve
(
size_t.init
)) ==
size_t
)
)
Meta
Source
See Implementation
nxt
container
common
enums
BorrowCheckFlag
GrowOnlyFlag
GrowthStrategy
functions
popFirstMaybe
reserveWithGrowth
shiftToFrontAt
Reserve room for extra more elements in x.