TreeMap.opIndex

Indexing function that relies on the GC, and throws if no match found Can be indexed with any type of value as long as K.opCmp supports it. Returns the found element if match found.

  1. E opIndex(K key)
  2. E opIndex(T key)
    struct TreeMap(K, E, bool nogcIndexing = true, alias less = "a < b")
    ref @safe pure
    E
    opIndex
    (
    T
    )
    (
    T key
    )
  3. K opIndex(T key)
  4. K opIndex(T key)

Meta