identity

identity#

stdgpu: stdgpu::identity
stdgpu Latest
Efficient STL-like Data Structures on the GPU

Detailed Description

A function to return the given value.

Public Member Functions

template<typename T >
STDGPU_HOST_DEVICE T && operator() (T &&t) const noexcept