thrust::transform_if_n

Defined in thrust/transform.h

template<typename DerivedPolicy, typename InputIterator, typename ForwardIterator, typename UnaryFunction, typename Predicate>
ForwardIterator thrust::transform_if_n(const detail::execution_policy_base<DerivedPolicy> &exec, InputIterator first, ::cuda::std::iter_difference_t<InputIterator> count, ForwardIterator result, UnaryFunction op, Predicate pred)

Like transform_if, but uses an element count instead of an iterator to the last element of the input sequence.