Return the transformed element at the specified offset.
Declared in <bdlb_transformiterator.h>
TransformIterator<FUNCTOR, ITERATOR>::reference
operator[](difference_type offset) const;
Return the result of applying the functor of this object to the result of dereferencing the underlying iterator advanced by the specified (signed) offset. The behavior is undefined if so advancing or dereferencing the underlying iterator is undefined. Note that the behavior of this method is equivalent to: ` functor()(iterator()[offset]) `
transformed value at that offset
| Name | Description |
|---|---|
| offset | signed offset from the current position |