Addition operators

Synopses

Declared in <bdlc_compactedarray.h>

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

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

Return an iterator at the specified offset from iterator.

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

Return an iterator at the specified offset from iterator.

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

Return Value

iterator at the specified offset from iterator

Parameters

Name

Description

iterator

base iterator

offset

number of positions to advance

Created with MrDocs