HashMap.opBinaryRight

Implement the 'in' operator for a map.

The in operator on a map will return a pointer to a value, which will be null when no corresponding value is set for a given key.

struct HashMap(K, V)
@nogc @safe pure nothrow const
V*
opBinaryRight
(
string op
)
(
K key
)
if (
op == "in"
)

Parameters

key K

The key in the map.

Return Value

Type: V*

A pointer to a value, a null pointer if a value is not set.

Meta