HybridHashMap.keyOf

Get key part.

  1. inout(K) keyOf(inout(SomeElement) element)
  2. inout(K) keyOf(inout(SomeElement) element)
  3. inout(K) keyOf(inout(KeyValueType) element)
    struct HybridHashMap(K, V = void, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!(K), Allocator = Mallocator, Options options = Options.init)
    pragma(inline, true) static ref
    static if(hasValue)
    @trusted => cast(typeof(return))element.key
    inout(K)
    keyOf
    ()
    (
    auto ref return scope inout(KeyValueType) element
    )
    if (
    isAllocator!Allocator
    )
  4. inout(SomeElement) keyOf(inout(SomeElement) element)

Meta