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&,
std::ptrdiff_t);
Same as the preceding overload with operands swapped.
template<class TYPE>
bdlc::CompactedArray_ConstIterator<TYPE>
operator+(
std::ptrdiff_t offset,
CompactedArray_ConstIterator<TYPE> const& iterator);
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().
template<class TYPE>
bdlc::CompactedArray_ConstIterator<TYPE>
operator+(
CompactedArray_ConstIterator<TYPE> const& iterator,
std::ptrdiff_t offset);
Created with MrDocs