Luna::WeakRef::object

object_t object() const

Gets the boxed object.

This call does not modify the reference counter of the object.

Return value

Returns one pointer to the boxed object. Returns nullptr if the reference is null or the boxed object is expired.

Remark

It is not safe to use the returned boxed object directly, see remarks of WeakObjRef::get for details.