The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
SharedBorrowedRegion.goodAllocSize
std
experimental
allocator
building_blocks
region
SharedBorrowedRegion
Rounds the given size to a multiple of the
alignment
struct
SharedBorrowedRegion
(uint minAlign = platformAlignment, Flag!"growDownwards" growDownwards = No.growDownwards)
shared const pure nothrow @
safe
@
nogc
size_t
goodAllocSize
(
size_t
n
)
Meta
Source
See Implementation
std
experimental
allocator
building_blocks
region
SharedBorrowedRegion
aliases
alignment
constructors
this
functions
alignedAllocate
allocate
deallocate
deallocateAll
empty
goodAllocSize
owns
Rounds the given size to a multiple of the alignment