SSOHashMapOrSet.contains

Check if element is stored.

  1. bool contains(K key)
  2. 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 ref K key
    )
    if (
    smallBinMinCapacity >= 1
    )

Return Value

Type: bool

true if element was already present, false otherwise.

Meta