API Reference > OdDAI Namespace > Classes > IteratorCollection Template > IteratorCollection Methods > IteratorCollection::addAfterCurrentMember Method
IteratorCollection::addAfterCurrentMember Method
Syntax
C++
virtual void addAfterCurrentMember(const OdRxValue& anItem);
Parameters 
Description 
const OdRxValue& anItem 
[in] An instance of the OdRxValue class that represents the new element to be added. 

Adds a new specified element to the list aggregate after the element referred to by the iterator. The new element is added after the current element; the current element that the iterator refers to is not changed.

The method throws an exception with the AI_NVLD code value if the aggregate instance is not a list.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.