Return whether this map contains an element with key.

Synopses

Declared in <bdlc_flathashmap.h>

Return whether this map contains an element with key.

bool
contains(KEY const& key) const;

Return whether this map contains an element with 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 an element with key exists, and false otherwise

Parameters

Name

Description

key

key to look up

Created with MrDocs