omni::core::borrow

Defined in omni/core/IObject.h

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

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

nullptr is accepted.