C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

Map::First

Defined in:  C4Map.h
Returns the first element in a map.
Prototype

type *First(voidconst;

Description
The First function returns a pointer to the first element in a map. If the map is empty, then this function returns nullptr.

The first element in a map is always the one having the least key value based on the ordering defined for the KeyType type. The MapElement::Next function can be repeated called to iterate through the members of a map in order.
See Also

Map::Last