thrust::reinterpret_tag#

template<typename Tag, typename Iterator>
unspecified_iterator_type thrust::reinterpret_tag(
Iterator iter
)#

reinterpret_tag returns a copy of an iterator and changes the type of the result’s system tag.

Added in version 2.2.0.

See also

retag

Note

Unlike retag, reinterpret_tag does not enforce that the converted-to system tag be related to the converted-from system tag.

Template Parameters:
  • Tag – Any system tag.

  • Iterator – Any iterator type.

Parameters:

iter – The iterator of interest.

Returns:

An iterator of unspecified type whose system tag is Tag and whose behavior is otherwise equivalent to iter.