Thrust

◆ operator=()

template<class AdaptableUnaryFunction, class Iterator, class Reference = use_default, class Value = use_default>
__host__ __device__ transform_iterator& thrust::transform_iterator< AdaptableUnaryFunction, Iterator, Reference, Value >::operator= ( const transform_iterator< AdaptableUnaryFunction, Iterator, Reference, Value > &  other)

Copy assignment operator copies from another transform_iterator. other The other transform_iterator to copy

Returns
*this
Note
If the type of this transform_iterator's functor is not copy assignable (for example, if it is a lambda) it is not an error to call this function. In this case, however, the functor will not be modified.

In any case, this transform_iterator's underlying iterator will be copy assigned.