thrust::project2nd
Defined in thrust/functional.h
-
template<typename T1 = void, typename T2 = void>
struct project2nd project2nd
is a function object that takes two arguments and returns its second argument; the first 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::project2nd<int> pj2; assert(y == pj2(x,y));
See also
See also
See also