Bucket.find

Looks up the element whose key equals key.

struct Bucket(size_t V, K = hash_t)
find
out (element) { debug(HostingArrayMapBucket) if (element) { assert (element.bucket, "bucket not set in found element"); assert (element.bucket is &this, "element found is not from this bucket"); } }

Parameters

key Element.Key

element key

Return Value

Type: Element*

the element whose key equals key or null if not found.

Meta