BloombergLP::bslstl::ForwardIterator::operator=

Assign to this iterator the value of a compatible iterator.

Synopsis

Declared in <bslstl_forwarditerator.h>

ForwardIterator<T, ITER_IMP, TAG_TYPE>&
operator=(ForwardNonConstIterator const& rhs);

Description

Copy the value of the specified rhs of another (compatible) ForwardIterator type, (e.g., a mutable iterator of the same type) to this iterator. Return a reference to this modifiable object. Note that this method may be the copy-assignment operator (inhibiting the implicit declaration of a copy-assignment operator above), or may be an additional overload.

Return Value

reference providing modifiable access to this object

Parameters

NameDescription
rhscompatible iterator to assign from