CMapStringToOb::LookupKey
Returns a reference to the key associated with the specified key value.
BOOL LookupKey(
LPCTSTR key,
LPCTSTR& rKey
) const;
Параметры
key
Specifies the string key that identifies the element to be looked up.rKey
The reference to the associated key.
Возвращаемое значение
Nonzero if the key was found; otherwise 0.
Заметки
Using a reference to a key is unsafe if used after the associated element was removed from the map or after the map was destroyed.
The following table shows other member functions that are similar to CMapStringToOb:: LookupKey.
Class |
Member Function |
---|---|
BOOL LookupKey( LPCTSTR key, LPCTSTR&rKey ) const; |
|
BOOL LookupKey( LPCTSTR key, LPCTSTR&rKey ) const; |
Требования
Header: afxcoll.h