Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions cub/cub/util_device.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -130,24 +130,6 @@ CUB_RUNTIME_FUNCTION inline int DeviceCountUncached()
return count;
}

/**
* \brief Cache for an arbitrary value produced by a nullary function.
* deprecated [Since 2.6.0]
*/
template <typename T, T (*Function)()>
struct CCCL_DEPRECATED ValueCache
{
T const value;

/**
* \brief Call the nullary function to produce the value and construct the
* cache.
*/
_CCCL_HOST inline ValueCache()
: value(Function())
{}
};

// Host code. This is a separate function to avoid defining a local static in a host/device function.
_CCCL_HOST inline int DeviceCountCachedValue()
{
Expand Down
Loading