<div dir="ltr">Hello, folks!<div><br></div><div>I'm on to a project, which requires manual memory management using custom allocators, but I can't seem to get dynamic arrays and associative arrays to work.<br clear="all">
<div><br></div><div style>The std.conv.emplace only allocates the pointer and the size of the dynamic array and pointer to the associative array, which is half the issue.</div><div style><br></div><div style>I can work around the dynamic array by manually allocating the elements of the array and returning a slice to the result (although I'd be really glad if I could directly use arrays with my custom allocators).</div>
<div style><br></div><div style>The biggest problem is the associative array, the storage of which is completely hidden and implemenentation-specific, so I can't work around it the way I can with dynamic arrays.</div>
<div style><br></div><div style>How can I have an associative array, which uses a custom allocator?</div><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.
</div></div>