CList::AddHead

POSITION AddHead( ARG_TYPE newElement );

void AddHead( CList* pNewList );

Return Value

The first version returns the POSITION value of the newly inserted element.

Parameters

ARG_TYPE

Template parameter specifying the type of the list element (can be a reference).

newElement

The new element.

pNewList

A pointer to another CList list. The elements in pNewList will be added to this list.

Remarks

Adds a new element or list of elements to the head of this list. The list can be empty before the operation.

CList OverviewClass MembersHierarchy Chart

See Also   CList::GetHead, CList::RemoveHead