C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

List::Prepend

Defined in:  C4List.h
Adds an object to the beginning of a list.
Prototype

void Prepend(ListElement<type> *element);

Parameters
element A pointer to the object to add to the list.
Description
The Prepend function adds the object specified by the element parameter to the beginning of a list. If the object is already a member of the list, then it is moved to the beginning. If the object is a member of a different list, then it is first removed from that list before being added to the new list.
See Also

List::Append

List::InsertBefore

List::InsertAfter