thrust::make_permutation_iterator
Defined in thrust/iterator/permutation_iterator.h
- 
template<typename ElementIterator, typename IndexIterator>
 permutation_iterator<ElementIterator, IndexIterator> thrust::make_permutation_iterator(ElementIterator e, IndexIterator i)
- make_permutation_iteratorcreates a- permutation_iteratorfrom an- ElementIteratorpointing to a range of elements to “permute” and an- IndexIteratorpointing to a range of indices defining an indexing scheme on the values.- See also - Parameters
- e – An - ElementIteratorpointing to a range of values.
- i – An - IndexIteratorpointing to an indexing scheme to use on- e.
 
- Returns
- A new - permutation_iteratorwhich permutes the range- eby- i.