Subtraction operators
Declared in <bslstl_randomaccessiterator.h>
Return an iterator rhs positions before lhs.
template<
class T,
class ITER_IMP,
class TAG_TYPE>
bslstl::RandomAccessIterator<T, ITER_IMP, TAG_TYPE>
operator-(
RandomAccessIterator<T, ITER_IMP, TAG_TYPE> const& lhs,
std::ptrdiff_t rhs);
» more...
Return the distance from rhs to lhs.
template<
class T1,
class T2,
class ITER_IMP,
class TAG_TYPE>
std::ptrdiff_t
operator-(
RandomAccessIterator<T1, ITER_IMP, TAG_TYPE> const& lhs,
RandomAccessIterator<T2, ITER_IMP, TAG_TYPE> const& rhs);
» more...
rhs positions before lhsrhs to lhs| Name | Description |
|---|---|
| lhs | iterator to regress from |
| rhs | number of positions to regress |