TreeMap.opIndex

@nogc capable indexing. Can be indexed with any type of value as long as K.opCmp supports it. Returns the found element if match found. Returns E.init if match not found.

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

Meta