BucketSet.put_

Adds or updates a mapping from the specified key.

  1. Bucket.Element* put_(K key, bool added)
    class BucketSet(size_t V, K = hash_t)
    protected final
    put_
    (
    K key
    ,
    out bool added
    )
    out (element) { version (none) { assert (element !is null); assert (element.key == key, "key mismatch"); } }
  2. Bucket.Element* put_(K key)

Parameters

key K

key to add/update mapping for

added bool

set to true if the record did not exist but was added

Return Value

Type: Bucket.Element*

a pointer to the element mapped to by the specified key. The caller should set the value as desired and make sure that the key is not changed.

Meta