cuda::experimental::device_attribute_result_t

Defined in include/cuda/experimental/__device/device.cuh

template<::cudaDeviceAttr _Attr>
using cuda::experimental::device_attribute_result_t = typename __detail::__dev_attr<_Attr>::type

For a given attribute, type of the attribute value.

See also

device_attributes

Example

using threads_per_block_t = device::attr_result_t<device_attributes::max_threads_per_block>;
static_assert(std::is_same_v<threads_per_block_t, int>);