Map.opIndex

mapkey syntax support.

With initSlotInIndex=true, key's slot will be initialized if key doesn't exist.

  1. V opIndex(K key)
    struct Map(K, V, Allocator = shared const Mallocator, bool initSlotInIndex = true)
    ref
    static if(initSlotInIndex)
    V
    opIndex
    (
    in K key
    )
  2. inout(V) opIndex(K key)

Meta