BloombergLP::bslstl::HashTable::find

Return the address of a node with a key equivalent to key, or null.

Synopsis

Declared in <bslstl_hashtable.h>

template<class LOOKUP_KEY>
bslalg::BidirectionalLink*
find(LOOKUP_KEY const& key) const
requires BloombergLP::bslmf::IsTransparentPredicate<HASHER,    LOOKUP_KEY>::value
   && BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR,LOOKUP_KEY>::value;

Description

Return the address of a link whose key is equivalent to the specified key (according to this hash-table's comparator), and a null pointer value if no such link exists. If this hash-table contains more than one element having the supplied key, return the first such element (from the contiguous sequence of elements having the same key). The behavior is undefined unless key is equivalent to the elements of at most one equivalent-key group.

Return Value

address of a matching node, or null if none exists

Parameters

NameDescription
keytransparent key to search for