C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

Map::Last

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

type *Last(voidconst;

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

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

Map::First