BloombergLP::bdlb::operator++

Increment iterator and return a copy of its previous value.

Synopsis

Declared in <bdlb_transformiterator.h>

template<
    class FUNCTOR,
    class ITERATOR>
bdlb::TransformIterator<FUNCTOR, ITERATOR>
operator++(
    TransformIterator<FUNCTOR, ITERATOR>& iterator,
    int postfix);

Description

Increment the underlying iterator of the specified iterator, and return a copy of iterator before the increment. The behavior is undefined if incrementing the underlying iterator is undefined.

Return Value

a copy of iterator before the increment

Parameters

NameDescription
iteratortransform iterator to increment
postfixunused parameter distinguishing the postfix operator