Map::FindMapElement
Defined in:
Finds an object in a map.
TSMap.h
Prototype
type *FindMapElement(const KeyType& key) const;
Description
The FindMapElement
function searches a map for an object having the key value given by the key
parameter. If a matching object is found, then a pointer to it is returned. If no matching object is found, then the return value is nullptr
. This function is guaranteed to run in O(log n) time, where n is the number of objects stored in the map.
See Also