Template Function nvcv::StaticCast
Function Documentation
-
template<class T>
auto nvcv::StaticCast(HandleTypeOf<T> h) -> decltype(detail::StaticCast<T>::cast(h)) A templated function to perform a static cast on the handle type of a given class
T
.This function uses the
StaticCast
structure in thedetail
namespace to perform the static cast. Thedecltype
keyword is used to deduce the return type of the function.- Template Parameters:
T – The class type to use for the static cast.
- Parameters:
h – The handle type instance to be cast.
- Returns:
Returns the result of the static cast operation.