How to do alligned allocation?

mw mingwu at
Fri Sep 30 16:23:00 UTC 2022

On Friday, 30 September 2022 at 15:57:22 UTC, Quirin Schroll 
> When I do `new void[](n)`, is that buffer allocated with an 
> alignment of 1 or what are the guarantees? How can I set an 
> alignment? Also, is the alignment of any type guaranteed to be 
> a power of 2?

It's the C func, so check C lib doc.

More information about the Digitalmars-d-learn mailing list