C4 Engine
C4 Engine API Documentation

Map::FindMapElement

Defined in:  TSMap.h
Finds an object in a map.
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

Map::InsertMapElement

Map::InsertReplaceMapElement

Map::RemoveMapElement