thrust
Modules
Iterator Tags

Modules

 Iterator Tag Classes
 
template<typename Tag , typename Iterator >
__host__ __device__
unspecified_iterator_type 
thrust::reinterpret_tag (Iterator iter)
 
template<typename Tag , typename Iterator >
__host__ __device__
unspecified_iterator_type 
thrust::retag (Iterator iter)
 

Detailed Description

Function Documentation

template<typename Tag , typename Iterator >
__host__ __device__ 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.

Template Parameters
TagAny system tag.
IteratorAny iterator type.
Parameters
iterThe iterator of interest.
Returns
An iterator of unspecified type whose system tag is Tag and whose behavior is otherwise equivalent to iter.
Note
Unlike retag, reinterpret_tag does not enforce that the converted-to system tag be related to the converted-from system tag.
See Also
retag
template<typename Tag , typename Iterator >
__host__ __device__ unspecified_iterator_type thrust::retag ( Iterator  iter)

retag returns a copy of an iterator and changes the type of the result's system tag.

Template Parameters
TagTag shall be convertible to thrust::iterator_system<Iterator>::type, or thrust::iterator_system<Iterator>::type is a base type of Tag.
IteratorAny iterator type.
Parameters
iterThe iterator of interest.
Returns
An iterator of unspecified type whose system tag is Tag and whose behavior is otherwise equivalent to iter.
Note
Unlike reinterpret_tag, retag enforces that the converted-to system tag be related to the converted-from system tag.
See Also
reinterpret_tag