HybridHashMap.contains

Check if element is stored.

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

struct HybridHashMap(K, V = void, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!(K), Allocator = Mallocator, Options options = Options.init)
const scope @trusted
bool
contains
(
SomeKey
)
(
in SomeKey key
)
if (
isAllocator!Allocator
)

Return Value

Type: bool

true if element is present, false otherwise.

Meta