The decision must be made in terms of what you want to do with your object. Since you do not enable the option to save the value, I assume that you need the container to refer to an external object. If this is not a requirement, consider using standard containers: keep a copy of the object.
, NULL ( : , Undefined Behavior). , , , : , .
, , , reset . , , , , . , , . - : .
, , NULL, / . , , , . , . , , ( ) . , ( , , ).