Map.opBinaryRight

In operator. Looks up the value mapped by key.

Note: If it is sure that a value for key is in the map, in other words, it would be a bug if it isn't, get() below is the preferred method to use because it guarantees never to return a null pointer.

class Map(size_t V, K)
void[]
opBinaryRight
(
string op : "in"
)
(
in K key
)
out (val) { if (val) { assert (val.length == V); } }

Parameters

key K

key to look up the value for

Return Value

Type: void[]

an array slicing the value buffer mapped by key, if it exists, or null otherwise.

Out: The returned array is either null or has the length V.

Meta