OpenHashMap.contains

Check if element is stored.

Parameter key may be non-immutable, for instance const(char)[] eventhough key type K is string.

struct OpenHashMap(K, V = void, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!(K), alias Allocator = Mallocator.instance, bool borrowChecked = false, bool useSmallLinearSearch = true, bool usePrimeCapacity = false)
const scope @trusted
bool
contains
(
SomeKey
)
(
const scope SomeKey key
)

Return Value

Type: bool

true if element is present, false otherwise.

Meta