Microsoft DirectX 8.1 (C++)

CBaseList::MoveToHead

The MoveToHead method splits the list and inserts the tail portion at the head of another list.

Syntax

BOOL MoveToHead(
    POSITION pos,
    CBaseList *pList
);

Parameters

pos

Position indicator that marks the split in the list.

pList

Pointer to another list.

Return Value

Returns TRUE if successful, or FALSE otherwise.

Remarks

This method splits the list before the position specified by the pos parameter. The head portion remains in the list. The tail portion is inserted at the head of the other list.

See Also