Return true if this container has an element with key equivalent to key.

Synopses

Declared in <bslstl_unorderedmultimap.h>

Return true if this container has an element with key equivalent to key.

bool
contains(key_type const& key) const;

Return true if this container has an element with key equivalent to 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;

Return Value

  • true if key is present, and false otherwise

  • true if present, otherwise false

Parameters

Name

Description

key

key value to look up

Created with MrDocs