SSOHashMapOrSet.contains

Check if element is stored.

  1. bool contains(K key)
    struct SSOHashMapOrSet(K, V = void, alias Allocator = null, alias hasher = hashOf, uint smallBinMinCapacity = 1, uint capacityScaleNumerator = 2, uint capacityScaleDenominator = 1)
    pragma(inline) const
    bool
    contains
    ()
    (
    in K key
    )
    if (
    smallBinMinCapacity >= 1
    )
  2. bool contains(K key)

Return Value

Type: bool

true if element was already present, false otherwise.

Meta