CObList::InsertAfter

POSITION InsertAfter( POSITION position, CObject* newElement );
  throw( CMemoryException );

参数:
position由前面调用的GetNext, GetPrev或 Find 等成员函数返回的POSITION值。
newElement指向要添加到该列表的对象指针。

说明:
在指定位置的元素后添加一个元素到列表中。

示例:
CObList list;
POSITION pos1, pos2;
list.AddHead( new CAge( 21 ) );
list.AddHead( new CAge( 40 ) ); // List now contains (40, 21).
if( ( pos1 = list.GetHeadPosition() ) != NULL )
{
  pos2 = list.InsertAfter( pos1, new CAge( 65 ) );
}
#ifdef _DEBUG
   afxDump.SetDepth( 1 );
   afxDump << "InsertAfter example: " << &list << "\n";
#endif

该程序的结果如下:
InsertAfter example: A CObList with 3 elements
a CAge at $4A44 40
a CAge at $4A64 65
a CAge at $4968 21

请参阅:CObList::Find, CObList::InsertBefore