bsl::unordered_set::contains

Return whether this unordered set contains key.

Synopsis

Declared in <bslstl_unorderedset.h>

bool
contains(key_type const& key) const;

Description

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

Return Value

true if key is present, and false otherwise

Parameters

NameDescription
keykey value to look up