API Reference > OdDAI Namespace > Classes > Iterator Class > Iterator Methods > Iterator::addBeforeCurrentMember Method
Iterator::addBeforeCurrentMember Method
Syntax
C++
virtual void addBeforeCurrentMember(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 before the element referred to by the iterator. The new element is added before 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.