BTree.opIndex

Search the B-Tree by key.

struct BTree(K, V, alias less = "a < b", bool allowDuplicates = false, bool duplicateKeyIsUB = false)
nothrow @nogc ref inout
inout(V)
opIndex
(
K key
)

Parameters

key K

Key to search for.

Return Value

Type: inout(V)

A reference to the value corresponding to this key.

Note: In case of duplicate keys, it returns one of those in unspecified order.

Meta