thrust::make_reverse_iterator

Defined in thrust/iterator/reverse_iterator.h

template<typename BidirectionalIterator>
reverse_iterator<BidirectionalIterator> thrust::make_reverse_iterator(BidirectionalIterator x)

make_reverse_iterator creates a reverse_iterator from a BidirectionalIterator pointing to a range of elements to reverse.

Parameters

x – A BidirectionalIterator pointing to a range to reverse.

Returns

A new reverse_iterator which reverses the range x.