Udostępnij za pośrednictwem


unique_ptr::release

Stores pointer() in stored_ptr and returns its previous contents.

pointer release();

Property Value/Return Value

Returns its previous contents of stored_ptr.

Remarks

The member function stores pointer() in stored_ptr and returns its previous contents.

Requirements

Header: <memory>

Namespace: std

See Also

Reference

unique_ptr Class

<memory>

Other Resources

unique_ptr Members

<memory> Members