bsl::unordered_map::contains

Return whether this unordered map contains the specified key.

Synopsis

Declared in <bslstl_unorderedmap.h>

bool
contains(key_type const& key) const;

Description

Return true if this unordered map contains an element whose key is equivalent to the specified key.

Return Value

true if present, otherwise false

Parameters

NameDescription
keykey to look up