View source code
Display the source code in dmd/backend/aarray.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.

Struct dmd.backend.aarray.AArray

Associative Array type.

struct AArray(TKey, Value) ;

Methods

NameDescription
apply For each element in the AArray, call dg(Key* pkey, Value* pvalue) If dg returns !=0, stop and return that value.
del Delete key entry in aa[]. If key is not in aa[], do nothing.
destroy Frees all the data used by AArray
get Get pointer to value in associative array indexed by key. Add entry for key if it is not already there.
isIn Determine if key is in aa.
keys Produce array of keys from aa.
length
rehash Rehash an array.
values Produce array of values from aa.

Parameters

NameDescription
TKey type that has members Key, getHash(), and equals()
Value value type

Authors

Walter Bright, Dave Fladebo

License

Distributed under the Boost Software License, Version 1.0.