BloombergLP::bslstl::operator--

Decrement operators

Synopses

Declared in <bslstl_bidirectionaliterator.h>

Post-decrement the specified iterator and return its previous value.

template<
    class T,
    class ITER_IMP,
    class TAG_TYPE>
bslstl::BidirectionalIterator<T, ITER_IMP, TAG_TYPE>
operator--(
    BidirectionalIterator<T, ITER_IMP, TAG_TYPE>& iter,
    int unused);
» more...

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

template<
    class T,
    class ITER_IMP,
    class TAG_TYPE>
bslstl::RandomAccessIterator<T, ITER_IMP, TAG_TYPE>
operator--(
    RandomAccessIterator<T, ITER_IMP, TAG_TYPE>& iter,
    int postfix);
» more...

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

template<
    class VALUE,
    class NODE,
    class DIFFERENCE_TYPE>
TreeIterator<VALUE, NODE, DIFFERENCE_TYPE>
operator--(
    TreeIterator<VALUE, NODE, DIFFERENCE_TYPE>& iter,
    int postfix);
» more...

Return Value

  • previous value of iter
  • previous value of iter before the decrement

Parameters

NameDescription
iteriterator to decrement
unusedignored; distinguishes post-decrement
postfixunused parameter distinguishing the postfix operator