Move iter to the previous element and return its previous value.

Synopsis

Declared in <bslstl_treeiterator.h>

template<
    class VALUE,
    class NODE,
    class DIFFERENCE_TYPE>
TreeIterator<VALUE, NODE, DIFFERENCE_TYPE>
operator‐‐(
    TreeIterator<VALUE, NODE, DIFFERENCE_TYPE>& iter,
    int postfix);

Description

Move the specified iter to the previous element in the tree and return the value of iter prior to this call. The behavior is undefined unless the iterator refers to the past‐the‐end or the non‐leftmost element in the tree.

Return Value

previous value of iter before the decrement

Parameters

Name

Description

iter

iterator to decrement

postfix

unused parameter distinguishing the postfix operator

Created with MrDocs