cast#

Fully qualified name: omni::graph::exec::unstable::cast

template<typename T, typename U>
inline T *omni::graph::exec::unstable::cast(
U *ptr,
) noexcept#

Casts the given pointer to the given interface (e.g. T).

nullptr is accepted.

Unlike omni::core::cast(), this function does not call omni::core::IObject::acquire() on the returned pointer.

Returns:

A valid pointer is returned if the given pointer implements the given interface. Otherwise, nullptr is returned.