Microsoft DirectX 8.1 (C++)

CGenericList::AddHead

The AddHead method adds an item or list to the front of the list.

Syntax

POSITION AddHead(
    OBJECT *pObj
);

Parameters

pObj

Pointer to an object of type OBJECT (the template type).

Return Value

Returns a POSITION value indicating the new head position. If the method fails, the return value is NULL.

Syntax

BOOL AddHead(
    CGenericList<OBJECT> *pList
);

Parameters

pList

Pointer to the list of items to add.

Return Value

Returns TRUE if successful, or FALSE otherwise.

See Also