Luna::Ref::attach

void attach(object_t ptr)

Attaches provided pointer.

This call does not modify the reference counter of the new boxed object. The original boxed object, if not null, will be released before new pointer is attached.

Parameters

  • in ptr

    The pointer to attach.