C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

Map::Find

Defined in:  C4Map.h
Finds an object in a map.
Prototype

type *Find(const KeyType& key) const;

Description
The Find 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::Insert

Map::InsertReplace

Map::Remove