CObList::AddHead
Adds a new element or list of elements to the head of this list.
POSITION AddHead( CObject* newElement ); void AddHead( CObList* pNewList );
The first version returns the POSITION value of the newly inserted element.
The following table shows other member functions that are similar to CObList::AddHead.
|
Class |
Member Function |
|---|---|
|
POSITION AddHead( void* newElement ); void AddHead( CPtrList* pNewList ); |
|
|
POSITION AddHead(const CString& newElement ); POSITION AddHead(LPCTSTR newElement ); void AddHead(CStringList* pNewList ); |
See CObList::CObList for a listing of the CAge class.
The results from this program are as follows:
AddHead example: A CObList with 2 elements
a CAge at $44A8 40
a CAge at $442A 21
