Increment operators

Synopses

Declared in <bdlb_functionoutputiterator.h>

Do nothing and return the specified iterator.

Advance object to the next token and return a copy of its prior value.

bdlb::TokenizerIterator const
operator++(
    TokenizerIterator& object,
    int postfix);

Do nothing and return a copy of the specified iterator.

template<class FUNCTION>
FunctionOutputIterator<FUNCTION>
operator++(
    FunctionOutputIterator<FUNCTION>& iterator,
    int postfix);

Increment iterator and return a copy of its previous value.

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

Return Value

  • a reference to iterator

  • copy of object prior to advancing

  • a copy of iterator

  • a copy of iterator before the increment

Parameters

Name

Description

iterator

iterator returned unchanged

object

iterator to advance

postfix

unused parameter distinguishing the postfix operator

Created with MrDocs