transform_range< R, UnaryFunction >#
stdgpu Latest
Efficient STL-like Data Structures on the GPU
|
stdgpu::transform_range< R, UnaryFunction >
Detailed Description
template<typename R, typename UnaryFunction>
class stdgpu::transform_range< R, UnaryFunction >
class stdgpu::transform_range< R, UnaryFunction >
A class representing range where a transformation is applied first.
- Template Parameters
-
R The input range type UnaryFunction The transformation function type
Public Types | |
using | difference_type = typename iterator::difference_type |
using | iterator = thrust::transform_iterator< UnaryFunction, typename R::iterator > |
using | reference = typename iterator::reference |
using | value_type = typename iterator::value_type |
Public Member Functions | |
transform_range ()=default | |
STDGPU_HOST_DEVICE | transform_range (R r) |
STDGPU_HOST_DEVICE | transform_range (R r, UnaryFunction f) |
STDGPU_HOST_DEVICE iterator | begin () const noexcept |
STDGPU_HOST_DEVICE bool | empty () const |
STDGPU_HOST_DEVICE iterator | end () const noexcept |
STDGPU_HOST_DEVICE index64_t | size () const |
Generated by 1.9.6