cpp/experimental/observer ptr/release

Stop watching the watched object, if any. get returns after the call.

Parameters
(none)

Return value
A pointer to the previously watched object, or if there was no watched object, i.e. the value which would be returned by get before the call.