cast
Fully qualified name: omni::core::cast
Defined in omni/core/IObject.h
-
template<typename T, typename U>
inline ObjectPtr<T> omni::core::cast(
- U *ptr,
) noexcept
Casts the given pointer to the given interface (e.g. T).
nullptr
is accepted.
- Returns:
A valid pointer is returned if the given pointer implements the given interface. Otherwise, nullptr
is returned.