BTree.opBinaryRight

Search the B-Tree by key.

struct BTree(K, V, alias less = "a < b", bool allowDuplicates = false, bool duplicateKeyIsUB = false)
nothrow @nogc inout
inout(V)*
opBinaryRight
(
string op
)
(
K key
)
if (
op == "in"
)

Parameters

key K

Key to search for.

Return Value

Type: inout(V)*

A pointer to the corresponding V value. null if not found.

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

Meta