Associative array

Imperatorn johan_forsberg_86 at hotmail.com
Sat Oct 14 21:40:15 UTC 2023


On Saturday, 14 October 2023 at 20:46:45 UTC, Nick Treleaven 
wrote:
> On Friday, 13 October 2023 at 11:32:29 UTC, Imperatorn wrote:
>> Hello there.
>>
>> I'm wondering if anyone would be opposed to us/me making 
>> associative array having resize/reserve public?
>>
>> Currently there exists private members in druntime etc for 
>> this but they are not exposed.
>>
>> Basically I would like to be able to reserve n buckets before 
>> populating.
>
> There was a PR for that but it wasn't merged. It only reserved 
> bucket space, not space for elements. See:
> https://github.com/dlang/druntime/pull/1929#issuecomment-336799304

Interesting. I will read more about it. Pros and cons etc. Thanks


More information about the Digitalmars-d mailing list