try_unwrap_contiguous_iterator#

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.