thrust::try_unwrap_contiguous_iterator
Defined in thrust/type_traits/unwrap_contiguous_iterator.h
-
template<typename Iterator>
auto thrust::try_unwrap_contiguous_iterator(Iterator it) -> try_unwrap_contiguous_iterator_t<Iterator> Takes an iterator and, if it is contiguous, unwraps it to the raw pointer it represents. Otherwise returns the iterator unmodified.