Return a reference to the key held by the specified link.

Synopsis

Declared in <bslalg_hashtableimputil.h>

template<class KEY_CONFIG>
static
HashTableImpUtil_ExtractKeyResult<KEY_CONFIG>::Type
extractKey(BidirectionalLink* link);

Description

Return a reference providing non‐modifiable access to the key (of type KEY_CONFIG::KeyType) held by the specified link. The behavior is undefined unless link refers to a node of type BidirectionalNode<KEY_CONFIG::ValueType>. KEY_CONFIG shall be a namespace providing the type names KeyType and ValueType, as well as a function that can be called as if it had the following signature: ` const KeyType& extractKey(const ValueType& obj); `

Return Value

reference to the key held by link

Parameters

Name

Description

link

node whose key to extract

Created with MrDocs