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