Return an iterator at the specified offset from iterator.

Synopsis

Declared in <bdlc_compactedarray.h>

template<class TYPE>
bdlc::CompactedArray_ConstIterator<TYPE>
operator+(
    CompactedArray_ConstIterator<TYPE> const& iterator,
    std::ptrdiff_t offset);

Description

The returned iterator, it, referencing a CompactedArray array, remains valid as long as 0 <= it ‐ array.begin() <= array.length(). The behavior is undefined unless CompactedArray_ConstIterator() != iterator and 0 <= iterator ‐ array.begin() + offset <= array.length().

Specializations

Name

Description

operator+<>

Return an iterator at the specified offset from the given iterator (see free operator+).

Return Value

iterator at the specified offset from iterator

Parameters

Name

Description

iterator

base iterator

offset

number of positions to advance

Created with MrDocs