cuda::experimental::stf::as_underlying
Defined in include/cuda/experimental/__stf/utility/core.cuh
-
template<typename E>
auto cuda::experimental::stf::as_underlying(E value) Casts an enum value to its underlying type.
This function template takes an enum value and returns its representation in the underlying integral type of the enum.
- Template Parameters
E – The type of the enum.
- Parameters
value – The enum value to be cast to its underlying type.
- Returns
The underlying integral value of the given enum value.