TreeMap.opIndex

@nogc capable indexing. Can be indexed with any type of value as long as K.opCmp supports it and alias less hasn't been changed. Returns the found element if match found. Returns E.init if match not found.

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

Meta