CGenericList::AddAfter

Inserts a node or list of nodes after the specified node.

POSITION AddAfter(
POSITION p,
OBJECT *pObj ); 
BOOL AddAfter(
POSITION pos,
CGenericList<OBJECT> *pList );

Parameters

  • pos
    Position after which to add the node or list of nodes.
  • pObj
    Pointer to the object to add.
  • pList
    Pointer to the list of objects to add.

Return Values

Returns the position of the inserted object in the case of single-object insertion. For list insertion, returns TRUE if successful; otherwise, returns FALSE.

Remarks

This member function calls the CBaseList::AddAfter member function when passed a list of nodes. CGenericList::AddAfter calls the CBaseList::AddAfterI member function when passed a single node.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.