BloombergLP::bdlc::operator-

Return an iterator referencing the location at the specified offset from the location referenced by the specified iterator. 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().

Synopsis

Declared in <bdlc_compactedarray.h>

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