thrust::retag#
-
template<typename Tag, typename Iterator>
unspecified_iterator_type thrust::retag( - Iterator iter
retagreturns a copy of an iterator and changes the type of the result’s system tag.Added in version 2.2.0.
See also
Note
Unlike
reinterpret_tag,retagenforces that the converted-to system tag be related to the converted-from system tag.- Template Parameters:
Tag –
Tagshall be convertible tothrust::iterator_system<Iterator>::type, orthrust::iterator_system<Iterator>::typeis a base type ofTag.Iterator – Any iterator type.
- Parameters:
iter – The iterator of interest.
- Returns:
An iterator of unspecified type whose system tag is
Tagand whose behavior is otherwise equivalent toiter.