thrust::project1st
Defined in thrust/functional.h
-
template<typename T1 = void, typename T2 = void>
struct project1st project1st
is a function object that takes two arguments and returns its first argument; the second argument is unused. It is essentially a generalization of identity to the case of a Binary Function.#include <thrust/functional.h> #include <assert.h> ... int x = 137; int y = -137; thrust::project1st<int> pj1; assert(x == pj1(x,y));
See also
See also
See also