cub::ValueCache

Defined in cub/util_device.cuh

template<typename T, T (*Function)()>
struct ValueCache

Cache for an arbitrary value produced by a nullary function.

deprecated [Since 2.6.0]

Public Functions

inline ValueCache()

Call the nullary function to produce the value and construct the cache.

Public Members

T const value