API Reference > OdDAI Namespace > Classes > Iterator Class > Iterator Methods > Iterator::addAfterCurrentMember Method
Iterator::addAfterCurrentMember Method
Syntax
C++
virtual void addAfterCurrentMember(const OdRxValue& anItem) = 0;
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.