www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - calloc for std.experimental.allocator

reply =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
Is there no equivalent of `calloc()` for 
`std.experimental.allocator`, something like

     Allocator.zeroAllocate(size_t numberOfElements)

?
Jan 11 2018
parent reply MrSmith <mrsmith33 yandex.ru> writes:
On Thursday, 11 January 2018 at 21:09:01 UTC, Nordlöw wrote:
 Is there no equivalent of `calloc()` for 
 `std.experimental.allocator`, something like

     Allocator.zeroAllocate(size_t numberOfElements)

 ?
http://dpldocs.info/experimental-docs/std.experimental.allocator.makeArray.4.html
Jan 11 2018
parent =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
On Thursday, 11 January 2018 at 21:57:28 UTC, MrSmith wrote:
 http://dpldocs.info/experimental-docs/std.experimental.allocator.makeArray.4.html
Thanks!
Jan 12 2018