omni::core::steal

Defined in omni/core/IObject.h

template<typename T>
inline ObjectPtr<T> omni::core::steal(T *ptr) noexcept

Returns an ObjectPtr managing the given pointer. omni::core::IObject::acquire() is not called on the pointer.

nullptr is accepted.