bsl::unordered_set::contains

contains overloads

Synopses

Declared in <bslstl_unorderedset.h>

Return whether this unordered set contains key.

bool
contains(key_type const& key) const;
» more...

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

template<class LOOKUP_KEY>
bool
contains(LOOKUP_KEY const& key) const
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value &&
            BloombergLP::bslmf::IsTransparentPredicate<EQUAL,
                                                       LOOKUP_KEY>::value;
» more...

Return Value

  • true if key is present, and false otherwise
  • true if present, otherwise false

Parameters

NameDescription
keykey value to look up