View source code
Display the source code in rt/aaA.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function rt.aaA._aaGetY

Lookup *pkey in aa. Called only from implementation of (aa[key]) expressions when value is mutable.

extern(C) void* _aaGetY (
  AA* paa,
  const(TypeInfo_AssociativeArray) ti,
  const(ulong) valsz,
  scope const(void*) pkey
);

Parameters

NameDescription
paa associative array opaque pointer
ti TypeInfo for the associative array
valsz ignored
pkey pointer to the key value

Returns

if key was in the aa, a mutable pointer to the existing value. If key was not in the aa, a mutable pointer to newly inserted value which is set to all zeros

Authors

Martin Nowak

License

Boost License 1.0.