BloombergLP::bdlb::operator+

Return a copy of iterator advanced by the specified offset.

Synopsis

Declared in <bdlb_transformiterator.h>

template<
    class FUNCTOR,
    class ITERATOR>
bdlb::TransformIterator<FUNCTOR, ITERATOR>
operator+(
    TransformIterator<FUNCTOR, ITERATOR> const& iterator,
    TransformIterator<FUNCTOR, ITERATOR>::difference_type offset);

Description

Return a copy of the specified iterator object with its underlying iterator advanced by the specified (signed) offset from that of iterator. The behavior is undefined if so advancing the underlying iterator is undefined.

Return Value

a copy of iterator advanced by offset

Parameters

NameDescription
iteratortransform iterator to advance
offsetsigned distance to advance