Address of an element of AA
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Apr 2 08:18:26 PDT 2016
On 04/02/2016 07:22 AM, Temtaime wrote:
> Hi !
> I can't find this in specs.
>
> If i add an element to AA:
> aa[10] = 123;
>
> Will &aa[10] be always the same (of course i don't remove that key) ?
>
> Thanks for a reply.
> I think specs should be enhanced.
No, the underlying buffer can be relocated when the hash table is
reconstructed e.g. when there are sufficiently many elements in the array.
Ali
More information about the Digitalmars-d-learn
mailing list