Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
Iterator::previous Method
Syntax
C++
virtual bool previous() = 0;

Moves the iterator to the previous element of an aggregate relative to the current one. The previous element becomes the current one unless the beginning of an aggregate is reached.

true if the move to the previous element was performed successfully; otherwise the method returns false. The false value returned by the method means that the beginning of the aggregation container is reached and the iterator can not be moved anymore.

Applicable for ordered aggregates (arrays, lists).

for (it->end(); it->previous(); ) { it->getCurrentMember()... }
Copyright © 2002-2022. Open Design Alliance All rights reserved.