|
This constructor swallows an externally provided pointer and consumes it. Since the number of copies maintained by this smart pointer is set to 1, deletion of this smart pointer will trigger a call to the release function of the pointee. This means that the pointer that is provided for constructing this object would become invalid at the latest when the last GCPtr is deleted. To make this slightly more deterministic, the pointee that is used for the construction of the smart pointer is deleted immediately. |